* { 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; }