chat.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. .chat-container {
  2. font-family: Arial, sans-serif;
  3. width: 100%;
  4. background-repeat: no-repeat;
  5. background-position: center 42%;
  6. background-size: 40% auto;
  7. /*padding: 20px;*/
  8. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  9. border-radius: 10px;
  10. overflow-y: auto;
  11. border:#666666;
  12. position: relative;
  13. height: 815px;
  14. }
  15. .chat-container-phone {
  16. font-family: Arial, sans-serif;
  17. width: 96%;
  18. background-repeat: no-repeat;
  19. background-position: center 42%;
  20. background-size: 60% auto;
  21. /*padding: 20px;*/
  22. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  23. border-radius: 10px;
  24. overflow-y: auto;
  25. border: 2px dashed #666666;
  26. position: relative;
  27. height: 815px;
  28. left: 2%;
  29. }
  30. .tips {
  31. position: sticky;
  32. top: 0px;
  33. left: 0px;
  34. width: 100%;
  35. display: block;
  36. line-height: 2rem;
  37. padding-left: 1.5rem;
  38. padding-right: 1.5rem;
  39. color: #A3A3A3;
  40. font-size: 1rem;
  41. background: #eff6ff;
  42. z-index: 10;
  43. }
  44. .tips-phone {
  45. position: sticky;
  46. top: 0px;
  47. left: 0px;
  48. width: 100%;
  49. display: block;
  50. line-height: 1.4rem;
  51. padding-left: 0.5rem;
  52. padding-right: 0.5rem;
  53. padding-top: 0.5rem;
  54. padding-bottom: 0.5rem;
  55. color: #A3A3A3;
  56. font-size: 0.8rem;
  57. background: #eff6ff;
  58. z-index: 10;
  59. }
  60. .message {
  61. display: flex;
  62. margin-bottom: 15px;
  63. }
  64. .avatar {
  65. width: 45px;
  66. height: 45px;
  67. border-radius: 50%;
  68. padding: 10px;
  69. }
  70. .message-content {
  71. background-color: rgba(239,246,255,0.95);
  72. padding: 10px 10px;
  73. border-radius: 10px;
  74. display: flex;
  75. flex-direction: column;
  76. align-items: flex-start;
  77. max-width: 70%;
  78. color: #8495a3;
  79. z-index: 9;
  80. }
  81. .nickname {
  82. font-weight: bold;
  83. margin-bottom: 1rem;
  84. color: #999999;
  85. }
  86. .nickname-phone {
  87. font-weight: bold;
  88. margin-bottom: 0.5rem;
  89. color: #999999;
  90. }
  91. .info{
  92. font-size: 1rem;
  93. }
  94. .info-phone{
  95. font-size: 0.9rem;
  96. margin-bottom: 0.5rem;
  97. line-height: 25px;
  98. }
  99. .time {
  100. font-size: 0.8em;
  101. color: #999999;
  102. }
  103. .time-phone {
  104. font-size: 0.8em;
  105. color: #999999;
  106. }
  107. .chatBoxOutside{
  108. position: sticky;
  109. bottom: 0px;
  110. width: 97.8%;
  111. margin: auto;
  112. left: 0;
  113. right: 5px;
  114. background-color: #F3F4F6;
  115. padding: 10px 20px;
  116. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  117. border-radius: 0 0 10px 10px;
  118. height: 100px;
  119. z-index: 10;
  120. }
  121. .chatBoxExample{
  122. width: 80%;
  123. height: 30px;
  124. margin-bottom: 0.5rem;
  125. white-space: nowrap;
  126. overflow-y: hidden;
  127. display: flex;
  128. scroll-behavior: smooth;
  129. overflow-x: scroll;
  130. -webkit-overflow-scrolling: touch;
  131. scrollbar-width: none;
  132. -ms-overflow-style: none;
  133. scroll-snap-type: x mandatory;
  134. scrollbar-width: none;
  135. float: left;
  136. }
  137. .chatBoxExample::-webkit-scrollbar {
  138. display: none; /* WebKit 浏览器 */
  139. }
  140. .chatBoxStop{
  141. position: relative;
  142. float: right;
  143. /*padding: 0px 10px;*/
  144. text-align: center;
  145. border-radius: 5px;
  146. height: 30px;
  147. line-height: 30px;
  148. color: #404040;
  149. background: #F3F4F6;
  150. font-size: 0.8rem;
  151. cursor: pointer;
  152. width: 20%;
  153. border-radius: 0 20px 20px 0;
  154. }
  155. .chatBoxExample-list{
  156. flex: 0 0 auto; /* 禁止伸缩 */
  157. height: 30px;
  158. line-height: 30px;
  159. text-align: center;
  160. padding: 0 1rem;
  161. margin-right: 1rem;
  162. font-size: 0.8rem;
  163. float: left;
  164. background: #D3D3D3;
  165. border-radius: 20px;
  166. color: #404040;
  167. /*max-width: 10rem;*/
  168. white-space: nowrap; /* 防止文本换行 */
  169. overflow: hidden; /* 隐藏溢出的文本 */
  170. text-overflow: ellipsis; /* 显示省略号 */
  171. cursor: pointer;
  172. display: inline-block;
  173. /*禁止选中文本*/
  174. -webkit-user-select: none; /* Chrome, Safari, Opera */
  175. -moz-user-select: none; /* Firefox */
  176. -ms-user-select: none; /* Internet Explorer/Edge */
  177. user-select: none;
  178. width: 33%;
  179. scroll-snap-align: start;
  180. display: inline-block;
  181. }
  182. .chatBoxExample-list:hover{
  183. background: #ffffff !important;;
  184. }
  185. .chatBoxInside{
  186. position: absolute;
  187. bottom: 10px;
  188. width: 98%;
  189. height: 40px;
  190. display: block;
  191. }
  192. input[type="text"]{
  193. outline: none;
  194. position: relative;
  195. width: 80%;
  196. left: 0%;
  197. height: 100%;
  198. line-height: 100%;
  199. border-radius: 10px 0 0 10px;
  200. border: none;
  201. padding-left: 20px;
  202. padding-right: 20px;
  203. padding-top: 0px;
  204. font-size: 1rem;
  205. color: #404040;
  206. float: left;
  207. background: #FFFFFF;
  208. box-sizing: border-box;
  209. }
  210. input[type="text"]:focus {
  211. outline: none;
  212. position: relative;
  213. width: 80%;
  214. left: 0%;
  215. height: 100%;
  216. line-height: 100%;
  217. border-radius: 10px 0 0 10px;
  218. border: none;
  219. padding-left: 20px;
  220. padding-right: 20px;
  221. padding-top: 0px;
  222. font-size: 1rem;
  223. color: #404040;
  224. float: left;
  225. background: #FFFFFF;
  226. box-sizing: border-box;
  227. }
  228. .button-send {
  229. background: #6c757d;
  230. border: none;
  231. border-radius: 0 10px 10px 0;
  232. outline: none;
  233. color: #ffffff;
  234. text-align: center;
  235. height: 100%;
  236. line-height: 40px;
  237. width: 20%;
  238. float: left;
  239. font-size: 1rem;
  240. z-index: 99999;
  241. pointer-events: none;
  242. cursor: not-allowed;
  243. }
  244. /*文本排版样式*/
  245. .para-break {
  246. height: 0; /* 保持结构但隐藏元素 */
  247. margin-bottom: 0.4em;
  248. display: block;
  249. }
  250. .semi-break {
  251. margin-bottom: 0.2em;
  252. display: block;
  253. }
  254. .colon-break {
  255. margin-bottom: 0.1em;
  256. display: block;
  257. }
  258. /* 中文标点挤压优化 */
  259. :lang(zh) {
  260. text-spacing: ideograph-alpha ideograph-numeric;
  261. }
  262. /* 基础分割线样式 */
  263. .think-divider {
  264. border: 3px;
  265. height: 2px;
  266. background: linear-gradient(90deg, transparent, #ddd, transparent);
  267. margin: 1.5em 0;
  268. }
  269. .chat-br{
  270. height: 0.1em;
  271. }
  272. .chat-think{
  273. color: #007bff;
  274. margin-bottom: 1rem;
  275. text-align: right;
  276. }
  277. .chat-answer{
  278. color: #007bff;
  279. margin-bottom: 1rem;
  280. text-align: right;
  281. }
  282. /*质控采纳与否*/
  283. .quality{
  284. width: 100%;
  285. height: 40px;
  286. line-height: 40px;
  287. margin-top: 10px;
  288. }
  289. .accept{
  290. color: #007bff;
  291. float: left;
  292. cursor: pointer;
  293. }
  294. .refuse{
  295. color: #c7254e;
  296. float: right;
  297. cursor: pointer;
  298. }
  299. .color-flash {
  300. animation: colorPulse 2s infinite;
  301. }
  302. @keyframes colorPulse {
  303. 0% { background-color: #ffffff; }
  304. 50% { background-color: #d3d3d3; }
  305. 100% { background-color: #ffffff; }
  306. }
  307. /*不采纳质控的弹窗*/
  308. .alertBox{
  309. width: 100%;
  310. height: 100%;
  311. z-index: 999;
  312. background: rgba(0,0,0,0.8);
  313. position: fixed;
  314. left: 0px;
  315. top: 0px;
  316. display: none;
  317. }
  318. .alertBoxBackground{
  319. width: 100%;
  320. height: 100%;
  321. cursor: pointer;
  322. }
  323. .alertBoxChild{
  324. position: absolute;
  325. left: 50%;
  326. top: 50%;
  327. transform: translate(-50%, -50%);
  328. width: 70%;
  329. }
  330. .alertBoxInput{
  331. height: 40px;
  332. line-height: 40px;
  333. width: 80%
  334. }
  335. .alertBoxButton{
  336. background: #6c757d;
  337. border: none;
  338. border-radius: 0 10px 10px 0;
  339. outline: none;
  340. color: #ffffff;
  341. text-align: center;
  342. height: 40px;
  343. line-height: 40px;
  344. width: 20%;
  345. float: left;
  346. font-size: 1rem;
  347. z-index: 99999;
  348. cursor: pointer;
  349. }
  350. /*ajax预加载遮罩层*/
  351. .alertBoxAjax{
  352. width: 100%;
  353. height: 100%;
  354. z-index: 999;
  355. background: rgba(0,0,0,0.8);
  356. position: fixed;
  357. left: 0px;
  358. top: 0px;
  359. display: none;
  360. }
  361. .alertBoxBackgroundAjax{
  362. width: 100%;
  363. height: 100%;
  364. cursor: pointer;
  365. }
  366. .alertBoxChildAjax{
  367. position: absolute;
  368. left: 50%;
  369. top: 50%;
  370. transform: translate(-50%, -50%);
  371. width: 70%;
  372. }
  373. .alertBoxButtonAjax{
  374. background: #d3d3d3;
  375. border: none;
  376. border-radius: 10px 10px 10px 10px;
  377. outline: none;
  378. color: #404040;
  379. text-align: center;
  380. height: 40px;
  381. line-height: 40px;
  382. width: 100%;
  383. float: left;
  384. font-size: 1rem;
  385. z-index: 99999;
  386. }