page-crm-training.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. font-family: "Microsoft YaHei", sans-serif;
  6. }
  7. .container {
  8. max-width: 1200px;
  9. margin: 0 auto;
  10. background-color: #fff;
  11. border-radius: 8px;
  12. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  13. overflow: hidden;
  14. margin-top: 20px;
  15. }
  16. .header {
  17. padding: 20px;
  18. background-color: #f8f9fc;
  19. border-bottom: 1px solid #e5e7eb;
  20. h1 {
  21. font-size: 24px;
  22. color: #333;
  23. text-align: center;
  24. }
  25. }
  26. .main {
  27. display: flex;
  28. flex-wrap: wrap;
  29. padding: 20px;
  30. gap: 20px;
  31. }
  32. /* 陪练场景选择侧边栏样式 */
  33. .sidebar {
  34. width: 320px;
  35. background-color: #f8f9fc;
  36. border-radius: 8px;
  37. padding: 20px;
  38. border: 1px solid #e5e7eb;
  39. height: fit-content;
  40. h2 {
  41. font-size: 18px;
  42. color: #333;
  43. margin-bottom: 20px;
  44. border-left: 4px solid #007bff;
  45. padding-left: 10px;
  46. }
  47. }
  48. .form-group {
  49. margin-bottom: 20px;
  50. label {
  51. display: block;
  52. margin-bottom: 8px;
  53. color: #666;
  54. font-weight: 500;
  55. }
  56. select, input {
  57. width: 100%;
  58. padding: 10px;
  59. border: 1px solid #ddd;
  60. border-radius: 4px;
  61. outline: none;
  62. font-size: 14px;
  63. transition: border-color 0.2s;
  64. &:focus {
  65. border-color: #007bff;
  66. }
  67. }
  68. }
  69. .btn-add {
  70. padding: 8px 15px;
  71. background-color: #007bff;
  72. color: #fff;
  73. border: none;
  74. border-radius: 4px;
  75. cursor: pointer;
  76. white-space: nowrap;
  77. &:hover {
  78. background-color: #0056b3;
  79. }
  80. }
  81. /* 场景列表样式 */
  82. .scene-list-container {
  83. margin-top: 30px;
  84. }
  85. .scene-list {
  86. border: 1px solid #e5e7eb;
  87. border-radius: 4px;
  88. padding: 10px;
  89. max-height: 300px;
  90. overflow-y: auto;
  91. background-color: #fff;
  92. }
  93. .scene-category {
  94. margin-bottom: 15px;
  95. padding-bottom: 10px;
  96. border-bottom: 1px dashed #e5e7eb;
  97. h4 {
  98. font-size: 15px;
  99. margin-bottom: 10px;
  100. color: #2c3e50;
  101. }
  102. }
  103. .scene-item {
  104. display: flex;
  105. justify-content: space-between;
  106. align-items: center;
  107. padding: 10px;
  108. background-color: #f9f9f9;
  109. border-radius: 4px;
  110. margin-bottom: 10px;
  111. cursor: pointer;
  112. transition: background-color 0.2s;
  113. &:hover {
  114. background-color: #f0f7ff;
  115. }
  116. }
  117. .scene-info {
  118. flex: 1;
  119. margin-right: 10px;
  120. }
  121. .scene-name {
  122. font-weight: 500;
  123. color: #333;
  124. margin-bottom: 3px;
  125. }
  126. .scene-desc {
  127. font-size: 13px;
  128. color: #666;
  129. line-height: 1.4;
  130. }
  131. .select-scene-btn {
  132. padding: 6px 12px;
  133. background-color: #28a745;
  134. color: white;
  135. border: none;
  136. border-radius: 4px;
  137. font-size: 13px;
  138. cursor: pointer;
  139. transition: background-color 0.2s;
  140. &:hover {
  141. background-color: #218838;
  142. }
  143. }
  144. .no-scene {
  145. color: #999;
  146. text-align: center;
  147. padding: 20px 0;
  148. font-size: 14px;
  149. }
  150. /* 对话模拟区域 */
  151. .chat-section {
  152. flex: 1;
  153. min-width: 300px;
  154. background-color: #fff;
  155. border-radius: 8px;
  156. padding: 20px;
  157. border: 1px solid #e5e7eb;
  158. height: fit-content;
  159. min-height: 480px;
  160. h2 {
  161. font-size: 18px;
  162. color: #333;
  163. margin-bottom: 15px;
  164. border-left: 4px solid #007bff;
  165. padding-left: 10px;
  166. }
  167. .chat-messages {
  168. height: 320px;
  169. overflow-y: auto;
  170. margin-bottom: 15px;
  171. border: 1px solid #e5e7eb;
  172. border-radius: 4px;
  173. padding: 15px;
  174. background-color: #fafafa;
  175. .system-message {
  176. color: #666;
  177. text-align: center;
  178. padding: 10px;
  179. font-style: italic;
  180. }
  181. p {
  182. margin: 8px 0;
  183. padding: 10px 12px;
  184. border-radius: 6px;
  185. max-width: 70%;
  186. word-wrap: break-word;
  187. line-height: 1.5;
  188. }
  189. p.user {
  190. background-color: #d1ecf1;
  191. color: #0c5460;
  192. margin-left: auto;
  193. box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  194. }
  195. p.bot {
  196. background-color: #f1f3f5;
  197. color: #495057;
  198. box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  199. }
  200. }
  201. .chat-input {
  202. display: flex;
  203. gap: 10px;
  204. input {
  205. flex: 1;
  206. padding: 10px;
  207. border: 1px solid #ddd;
  208. border-radius: 4px;
  209. outline: none;
  210. }
  211. button {
  212. padding: 0 20px;
  213. background-color: #007bff;
  214. color: #fff;
  215. border: none;
  216. border-radius: 4px;
  217. cursor: pointer;
  218. font-weight: 500;
  219. &:hover {
  220. background-color: #0056b3;
  221. }
  222. }
  223. }
  224. }
  225. /* 评估与报告区域 */
  226. .eval-report {
  227. width: 100%;
  228. display: flex;
  229. gap: 20px;
  230. margin-top: 10px;
  231. }
  232. .card {
  233. flex: 1;
  234. min-width: 250px;
  235. background-color: #fff;
  236. border-radius: 8px;
  237. padding: 20px;
  238. border: 1px solid #e5e7eb;
  239. box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  240. h3 {
  241. font-size: 16px;
  242. color: #333;
  243. margin-bottom: 20px;
  244. padding-bottom: 10px;
  245. border-bottom: 1px solid #f1f3f5;
  246. }
  247. }
  248. .score-circle {
  249. width: 120px;
  250. height: 120px;
  251. border-radius: 50%;
  252. background-color: #f3f4f6;
  253. margin: 0 auto 20px;
  254. display: flex;
  255. align-items: center;
  256. justify-content: center;
  257. font-size: 28px;
  258. color: #007bff;
  259. font-weight: bold;
  260. position: relative;
  261. box-shadow: inset 0 0 0 12px #fff, inset 0 0 0 13px #e5e7eb;
  262. }
  263. .score-details {
  264. display: flex;
  265. justify-content: space-around;
  266. color: #666;
  267. flex-wrap: wrap;
  268. gap: 10px;
  269. text-align: center;
  270. span {
  271. font-size: 14px;
  272. padding: 5px 0;
  273. flex: 1;
  274. min-width: 80px;
  275. border-bottom: 2px solid #f1f3f5;
  276. }
  277. }
  278. .report-list {
  279. list-style: none;
  280. padding: 0;
  281. li {
  282. padding: 12px 0;
  283. border-bottom: 1px solid #f1f3f5;
  284. color: #333;
  285. display: flex;
  286. justify-content: space-between;
  287. align-items: center;
  288. span {
  289. color: #666;
  290. font-size: 14px;
  291. }
  292. }
  293. }
  294. .btn-report {
  295. padding: 6px 12px;
  296. background-color: #007bff;
  297. color: #fff;
  298. border: none;
  299. border-radius: 4px;
  300. cursor: pointer;
  301. text-decoration: none;
  302. font-size: 14px;
  303. &:hover {
  304. background-color: #0056b3;
  305. }
  306. }
  307. /* 响应式调整 */
  308. @media (max-width: 768px) {
  309. .main {
  310. flex-direction: column;
  311. }
  312. .sidebar {
  313. width: 100%;
  314. margin-right: 0;
  315. }
  316. .eval-report {
  317. flex-direction: column;
  318. }
  319. }
  320. // 新增轮次和评分样式
  321. .training-info {
  322. display: flex;
  323. justify-content: space-between;
  324. margin-bottom: 10px;
  325. color: #666;
  326. font-size: 14px;
  327. }
  328. /* page-crm-training.scss (新增) */
  329. .report-modal {
  330. position: fixed;
  331. top: 0;
  332. left: 0;
  333. width: 100%;
  334. height: 100%;
  335. background-color: rgba(0, 0, 0, 0.5);
  336. display: flex;
  337. justify-content: center;
  338. align-items: center;
  339. z-index: 100;
  340. }
  341. .modal-content {
  342. background-color: white;
  343. border-radius: 8px;
  344. max-width: 600px;
  345. width: 90%;
  346. max-height: 80vh;
  347. overflow: auto;
  348. }
  349. .modal-header {
  350. display: flex;
  351. justify-content: space-between;
  352. align-items: center;
  353. padding: 16px;
  354. border-bottom: 1px solid #eee;
  355. }
  356. .modal-body {
  357. padding: 16px;
  358. }
  359. .report-date {
  360. color: #666;
  361. margin-bottom: 16px;
  362. }
  363. .report-content pre {
  364. white-space: pre-wrap;
  365. font-family: inherit;
  366. line-height: 1.6;
  367. }