/**
 * 对话评价页面专用样式
 * 采用现代设计风格，提供精美高级的视觉体验
 * 美化版本 - 排版和字体增强
 */

/* 评价容器 */
.evaluation-container {
  padding: 10px;
}

/* 评价页面头部卡片样式 */
.evaluation-header-card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  background: linear-gradient(120deg, var(--card-background), #f8f9fa);
  overflow: hidden;
  transition: var(--transition);
}

.evaluation-header-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.evaluation-icon-container {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.evaluation-badge {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(106, 17, 203, 0.2);
}

/* 评价内容卡片样式 */
.evaluation-content-card, .status-trend-card, 
.evaluation-metrics-card,
.evaluation-actions-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  background: white;
}

.evaluation-content-card:hover,
.evaluation-metrics-card:hover,
.evaluation-actions-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.glass-effect {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
  padding: 15px 20px;
}

/* 评价内容容器样式 */
.evaluation-content-container {
  padding: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
  position: relative;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* 自定义滚动条 */
.evaluation-content-container::-webkit-scrollbar {
  width: 6px;
}

.evaluation-content-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 3px;
}

.evaluation-content-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.evaluation-content-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* 评价内容布局 */
.evaluation-content-wrapper {
  padding: 5px;
}

/* 评价标题样式 */
.evaluation-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* 评价内容分区 */
.evaluation-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 单个评价分区 */
.evaluation-section {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 1.2rem;
  transition: all 0.3s ease;
  border-left: 3px solid var(--primary-color);
}

.evaluation-section:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* 分区标题 */
.section-title {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  font-weight: 600;
}

.section-number {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-right: 10px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(255, 59, 48, 0.2);
}

/* 分区内容 */
.section-content {
  color: var(--text-secondary);
  margin-bottom: 0;
  padding-left: 36px;
  line-height: 1.7;
}

/* 高亮关键词和数字 */
.highlight-keyword {
  color: #2575fc;
  font-weight: 600;
  background-color: rgba(37, 117, 252, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  white-space: nowrap;
}

.highlight-number {
  color: var(--primary-color);
  font-weight: 600;
}

/* 家长状态图表样式 */
.parent-status-card {
  background: white;
  background-color: var(--primary-transparent);
  border-radius: 12px;
  padding: 15px;
  margin: 0 0 18px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parent-status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* 评价分类结构样式 */
.evaluation-category {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.evaluation-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.category-content {
  padding-left: 10px;
}

.content-item {
  margin-bottom: 10px;
  line-height: 1.5;
  position: relative;
  padding-left: 15px;
}

.content-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
}

/* 为各类别添加不同的边框颜色 */
.evaluation-category:has(.text-primary) {
  border-left-color: var(--primary-color);
}

.evaluation-category:has(.text-success) {
  border-left-color: var(--success-color, #4CAF50);
}

.evaluation-category:has(.text-warning) {
  border-left-color: var(--warning-color, #FF9800);
}

.evaluation-category:has(.text-info) {
  border-left-color: var(--info-color, #2196F3);
}

/* 问题句子和话术建议的样式 */
.problem-sentence {
  margin: 15px 0;
  padding: 12px 15px;
  background-color: rgba(253, 237, 237, 0.7);
  border-radius: 8px;
  border-left: 3px solid #ff6b6b;
  position: relative;
  transition: all 0.3s ease;
}

.problem-sentence:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sentence-number {
  position: absolute;
  left: -8px;
  top: -8px;
  background-color: #ff6b6b;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 状态变化曲线图样式 */
.status-trend-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-trend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.status-chart-container {
  position: relative;
  height: 300px;
  margin-top: 10px;
}

.status-chart-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-text {
  color: var(--secondary-text);
  font-weight: 500;
}

.sentence-content {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
  line-height: 1.5;
  padding-left: 5px;
  border-left: 2px solid #ff6b6b;
}

.sentence-issue {
  font-size: 0.85rem;
  color: #e74c3c;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}

.sentence-issue:before {
  content: '\F33D';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: #e74c3c;
}

/* 话术建议组件 */
.speech-suggestion {
  margin-top: 10px;
  margin-left: 15px;
  background-color: rgba(241, 248, 255, 0.7);
  border-radius: 8px;
  padding: 12px;
  border-left: 3px solid #3498db;
}

.original-speech {
  text-decoration: line-through;
  color: #7f8c8d;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.suggested-speech {
  color: #2980b9;
  font-weight: 500;
  line-height: 1.5;
}

.improvement-point {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #27ae60;
  font-style: italic;
  padding-left: 22px;
  position: relative;
}

.improvement-point:before {
  content: '\F26A';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: #27ae60;
}

/* 话术评分组件 */
.speech-rating {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 6px;
}

.rating-stars {
  color: #f39c12;
  letter-spacing: 2px;
}

.rating-stars i {
  margin-right: 2px;
}

.rating-label {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #7f8c8d;
}

/* 学习建议组件 */
.learning-suggestion {
  margin-top: 8px;
  padding: 8px 10px;
  background-color: rgba(241, 248, 233, 0.6);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #388e3c;
}

.learning-suggestion i {
  color: #ffc107;
}

/* 类别标签 */
.category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  top: -5px;
}

/* 家长状态可视化卡片 */
.parent-status-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.parent-status-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.status-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.status-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
  border-radius: 3px;
}

.status-indicators {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.status-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.status-value {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.03);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.progress {
  height: 10px !important;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 家长状态水平比较图表 */
.status-comparison-chart {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.comparison-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
  text-align: center;
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-label {
  font-weight: 600;
  width: 70px;
  text-align: right;
  color: var(--text-color);
  font-size: 0.85rem;
}

.chart-bar-container {
  flex: 1;
  height: 26px;
  position: relative;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 13px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: 13px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chart-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-radius: 13px;
}

.chart-value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* JSON数据表格 */
.json-data-table {
  margin: 0.8rem 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.json-data-table table {
  margin-bottom: 0;
  background: transparent;
}

.json-data-table th {
  background: rgba(0, 0, 0, 0.03);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
  width: 40%;
  border: none;
}

.json-data-table td {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--primary-color);
  border: none;
}

.json-data-table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.01);
}

/* 段落样式 */
.evaluation-paragraph {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 评价报告中的数据指标样式 */
.evaluation-metric-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.evaluation-metric-item:last-child {
  border-bottom: none;
}

.evaluation-metric-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.metric-value {
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(255, 59, 48, 0.1);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* 操作区域专用样式 */
.evaluation-actions-card .card-body {
  padding: 20px;
  background-color: #fafafa;
}

.evaluation-actions-card .d-grid {
  gap: 15px !important;
}

/* 按钮渐变样式 */
.btn-gradient-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
  transition: all 0.3s ease;
  border-radius: 30px;
  padding: 10px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-gradient-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-gradient-primary:hover::before {
  left: 100%;
}

.btn-gradient-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
  color: white;
}

.btn-gradient-info {
  background: linear-gradient(135deg, #56ccf2, #2f80ed);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
  transition: all 0.3s ease;
  border-radius: 30px;
  padding: 10px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-gradient-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-gradient-info:hover::before {
  left: 100%;
}

.btn-gradient-info:hover {
  background: linear-gradient(135deg, #2f80ed, #1e65d0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 128, 237, 0.4);
  color: white;
}

.btn-gradient-success {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
  transition: all 0.3s ease;
  border-radius: 30px;
  padding: 10px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-gradient-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-gradient-success:hover::before {
  left: 100%;
}

.btn-gradient-success:hover {
  background: linear-gradient(135deg, #38ef7d, #11998e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
  color: white;
}
