123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422 |
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: "Microsoft YaHei", sans-serif;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- background-color: #fff;
- border-radius: 8px;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
- overflow: hidden;
- margin-top: 20px;
- }
- .header {
- padding: 20px;
- background-color: #f8f9fc;
- border-bottom: 1px solid #e5e7eb;
-
- h1 {
- font-size: 24px;
- color: #333;
- text-align: center;
- }
- }
- .main {
- display: flex;
- flex-wrap: wrap;
- padding: 20px;
- gap: 20px;
- }
- /* 陪练场景选择侧边栏样式 */
- .sidebar {
- width: 320px;
- background-color: #f8f9fc;
- border-radius: 8px;
- padding: 20px;
- border: 1px solid #e5e7eb;
- height: fit-content;
- h2 {
- font-size: 18px;
- color: #333;
- margin-bottom: 20px;
- border-left: 4px solid #007bff;
- padding-left: 10px;
- }
- }
- .form-group {
- margin-bottom: 20px;
-
- label {
- display: block;
- margin-bottom: 8px;
- color: #666;
- font-weight: 500;
- }
-
- select, input {
- width: 100%;
- padding: 10px;
- border: 1px solid #ddd;
- border-radius: 4px;
- outline: none;
- font-size: 14px;
- transition: border-color 0.2s;
-
- &:focus {
- border-color: #007bff;
- }
- }
- }
- .btn-add {
- padding: 8px 15px;
- background-color: #007bff;
- color: #fff;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- white-space: nowrap;
-
- &:hover {
- background-color: #0056b3;
- }
- }
- /* 场景列表样式 */
- .scene-list-container {
- margin-top: 30px;
- }
- .scene-list {
- border: 1px solid #e5e7eb;
- border-radius: 4px;
- padding: 10px;
- max-height: 300px;
- overflow-y: auto;
- background-color: #fff;
- }
- .scene-category {
- margin-bottom: 15px;
- padding-bottom: 10px;
- border-bottom: 1px dashed #e5e7eb;
-
- h4 {
- font-size: 15px;
- margin-bottom: 10px;
- color: #2c3e50;
- }
- }
- .scene-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 10px;
- background-color: #f9f9f9;
- border-radius: 4px;
- margin-bottom: 10px;
- cursor: pointer;
- transition: background-color 0.2s;
-
- &:hover {
- background-color: #f0f7ff;
- }
- }
- .scene-info {
- flex: 1;
- margin-right: 10px;
- }
- .scene-name {
- font-weight: 500;
- color: #333;
- margin-bottom: 3px;
- }
- .scene-desc {
- font-size: 13px;
- color: #666;
- line-height: 1.4;
- }
- .select-scene-btn {
- padding: 6px 12px;
- background-color: #28a745;
- color: white;
- border: none;
- border-radius: 4px;
- font-size: 13px;
- cursor: pointer;
- transition: background-color 0.2s;
-
- &:hover {
- background-color: #218838;
- }
- }
- .no-scene {
- color: #999;
- text-align: center;
- padding: 20px 0;
- font-size: 14px;
- }
- /* 对话模拟区域 */
- .chat-section {
- flex: 1;
- min-width: 300px;
- background-color: #fff;
- border-radius: 8px;
- padding: 20px;
- border: 1px solid #e5e7eb;
- height: fit-content;
- min-height: 480px;
- h2 {
- font-size: 18px;
- color: #333;
- margin-bottom: 15px;
- border-left: 4px solid #007bff;
- padding-left: 10px;
- }
-
- .chat-messages {
- height: 320px;
- overflow-y: auto;
- margin-bottom: 15px;
- border: 1px solid #e5e7eb;
- border-radius: 4px;
- padding: 15px;
- background-color: #fafafa;
-
- .system-message {
- color: #666;
- text-align: center;
- padding: 10px;
- font-style: italic;
- }
-
- p {
- margin: 8px 0;
- padding: 10px 12px;
- border-radius: 6px;
- max-width: 70%;
- word-wrap: break-word;
- line-height: 1.5;
- }
-
- p.user {
- background-color: #d1ecf1;
- color: #0c5460;
- margin-left: auto;
- box-shadow: 0 1px 2px rgba(0,0,0,0.05);
- }
-
- p.bot {
- background-color: #f1f3f5;
- color: #495057;
- box-shadow: 0 1px 2px rgba(0,0,0,0.05);
- }
- }
-
- .chat-input {
- display: flex;
- gap: 10px;
-
- input {
- flex: 1;
- padding: 10px;
- border: 1px solid #ddd;
- border-radius: 4px;
- outline: none;
- }
-
- button {
- padding: 0 20px;
- background-color: #007bff;
- color: #fff;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-weight: 500;
-
- &:hover {
- background-color: #0056b3;
- }
- }
- }
- }
- /* 评估与报告区域 */
- .eval-report {
- width: 100%;
- display: flex;
- gap: 20px;
- margin-top: 10px;
- }
- .card {
- flex: 1;
- min-width: 250px;
- background-color: #fff;
- border-radius: 8px;
- padding: 20px;
- border: 1px solid #e5e7eb;
- box-shadow: 0 1px 3px rgba(0,0,0,0.05);
-
- h3 {
- font-size: 16px;
- color: #333;
- margin-bottom: 20px;
- padding-bottom: 10px;
- border-bottom: 1px solid #f1f3f5;
- }
- }
- .score-circle {
- width: 120px;
- height: 120px;
- border-radius: 50%;
- background-color: #f3f4f6;
- margin: 0 auto 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28px;
- color: #007bff;
- font-weight: bold;
- position: relative;
- box-shadow: inset 0 0 0 12px #fff, inset 0 0 0 13px #e5e7eb;
- }
- .score-details {
- display: flex;
- justify-content: space-around;
- color: #666;
- flex-wrap: wrap;
- gap: 10px;
- text-align: center;
-
- span {
- font-size: 14px;
- padding: 5px 0;
- flex: 1;
- min-width: 80px;
- border-bottom: 2px solid #f1f3f5;
- }
- }
- .report-list {
- list-style: none;
- padding: 0;
-
- li {
- padding: 12px 0;
- border-bottom: 1px solid #f1f3f5;
- color: #333;
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- span {
- color: #666;
- font-size: 14px;
- }
- }
- }
- .btn-report {
- padding: 6px 12px;
- background-color: #007bff;
- color: #fff;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- text-decoration: none;
- font-size: 14px;
-
- &:hover {
- background-color: #0056b3;
- }
- }
- /* 响应式调整 */
- @media (max-width: 768px) {
- .main {
- flex-direction: column;
- }
-
- .sidebar {
- width: 100%;
- margin-right: 0;
- }
-
- .eval-report {
- flex-direction: column;
- }
- }
- // 新增轮次和评分样式
- .training-info {
- display: flex;
- justify-content: space-between;
- margin-bottom: 10px;
- color: #666;
- font-size: 14px;
- }
- /* page-crm-training.scss (新增) */
- .report-modal {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 100;
- }
- .modal-content {
- background-color: white;
- border-radius: 8px;
- max-width: 600px;
- width: 90%;
- max-height: 80vh;
- overflow: auto;
- }
- .modal-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 16px;
- border-bottom: 1px solid #eee;
- }
- .modal-body {
- padding: 16px;
- }
- .report-date {
- color: #666;
- margin-bottom: 16px;
- }
- .report-content pre {
- white-space: pre-wrap;
- font-family: inherit;
- line-height: 1.6;
- }
|