/**
 * 课程顾问模拟训练系统 - 现代化UI样式
 * 采用Apple Design风格和蓝色主题
 */

:root {
  --primary-color: #007aff;
  --primary-light: #47a3ff;
  --primary-dark: #0055b3;
  --secondary-color: #f2f2f7;
  --text-color: #1c1c1e;
  --text-secondary: #6e6e73;
  --background-color: #f5f5f7;
  --card-background: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --success-color: #34c759;
  --warning-color: #ffcc00;
  --info-color: #5ac8fa;
  --danger-color: #ff3b30;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 全局样式 */
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 首页系统介绍样式 */
.highlight-form {
  animation: highlight-pulse 1.5s ease-in-out;
  box-shadow: 0 0 0 5px rgba(0, 122, 255, 0.3);
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 122, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
}

.system-intro .card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.system-intro .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.intro-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature-item:hover {
  background-color: rgba(0, 122, 255, 0.05);
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-text h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.intro-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.intro-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.start-training-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.start-training-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

body {
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 防止水平滚动条 */
}

.container {
  max-width: 1200px;
  padding: 20px;
  width: 100%;
}

/* 响应式布局优化 */
@media (max-width: 992px) {
  .container {
    padding: 15px;
  }
  
  .card {
    margin-bottom: 15px;
  }
  
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .page-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .card-header {
    padding: 10px 15px;
  }
  
  .card-body {
    padding: 15px;
  }
  
  /* 改善移动端按钮触摸区域 */
  .btn {
    padding: 8px 16px;
    margin-bottom: 5px;
  }
  
  /* 调整移动端输入区域 */
  textarea.form-control {
    font-size: 16px; /* 防止iOS自动缩放 */
  }
}

@media (max-width: 576px) {
  .container {
    padding: 8px;
  }
  
  /* 移动端下的导航栏优化 */
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* 移动端下的按钮组优化 */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  /* 状态分析区域缩小 */
  .status-container {
    padding: 10px;
  }
  
  /* 改善小屏幕下的进度条标签 */
  .progress-label {
    font-size: 0.85rem;
  }
}

/* 导航栏 */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* 面包屑导航样式 */
.breadcrumb-container {
  background-color: transparent;
  padding: 8px 0;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
}

.breadcrumb {
  margin-bottom: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
  font-weight: 500;
}

/* 会话状态标签 */
.session-status .badge {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.session-status .badge.bg-success {
  background-color: var(--success-color) !important;
}

.session-status .badge.bg-danger {
  background-color: var(--danger-color) !important;
}

.session-status .badge.bg-warning {
  background-color: var(--warning-color) !important;
  color: #212529;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.brand-text {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
}

/* 卡片样式 */
.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 25px;
  overflow: hidden;
}

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

.card-header {
  background-color: var(--card-background);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

.card-body {
  padding: 20px;
}

/* 表单容器 */
.form-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 表单元素 */
.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  font-size: 0.95rem;
  display: block;
  position: relative;
  padding-left: 5px;
  transition: all 0.3s ease;
}

.form-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background-color: var(--primary-color);
  border-radius: 3px;
  opacity: 0.7;
}

.form-group:hover .form-label {
  color: var(--primary-color);
  transform: translateX(2px);
}

/* 新表单交互样式 */
.active-label {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.input-focus-effect {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.select-change-effect {
  animation: borderPulse 0.5s ease;
}

.pulse-animation {
  animation: pulse 0.3s ease;
}

/* 表单元素过渡效果 */
.form-control, .form-select, .form-label {
  transition: all 0.3s ease;
}

.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 15px;
  transition: all 0.3s ease;
  background-color: var(--secondary-color);
  width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 3.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: var(--text-color);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
  outline: none;
  transform: translateY(-1px);
}

.form-control:hover, .form-select:hover {
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

/* 自定义选择框样式 */
.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select option {
  padding: 10px;
  font-size: 0.95rem;
}

/* 修复表单元素在小屏幕上的显示 */
@media (max-width: 768px) {
  .col-md-4, .col-md-6 {
    width: 100%;
    padding: 0 10px;
    margin-bottom: 15px;
  }
  
  .form-floating {
    margin-bottom: 10px;
    position: relative;
  }
  
  .form-floating > label {
    font-size: 0.85rem;
  }
  
  .settings-group {
    padding: 0.75rem;
  }
  
  .slider-container {
    padding: 0.75rem;
  }
  
  .slider-header {
    margin-bottom: 0.5rem;
  }
  
  .slider-label {
    font-size: 0.9rem;
  }
  
  .slider-value {
    min-width: 2rem;
  }
  
  .settings-group-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

/* 表单分组样式 */
.settings-group {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  clear: both;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.settings-group:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: rgba(var(--primary-color-rgb), 0.2);
}

.settings-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.settings-group-title i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* 浮动标签表单样式 */
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1.5rem 0.75rem 0.5rem 0.75rem;
  width: 100%;
}

.form-floating > label {
  padding: 1rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 90%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 2;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-1.5rem) translateX(0.15rem);
  color: var(--primary-color);
  background-color: transparent;
  padding: 0.25rem 0.5rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

/* 下拉菜单样式 */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ff3b30' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
}

/* 滑块容器样式 */
.slider-container {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  clear: both;
  overflow: hidden;
}

.slider-container:hover {
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.slider-label {
  font-weight: 500;
  color: var(--text-color);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}

.slider-value {
  font-weight: 600;
  color: var(--primary-color);
  min-width: 2.5rem;
  text-align: right;
  margin-right: 0.5rem;
  display: inline-block;
}

.slider-reset {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 24px;
  height: 24px;
}

.slider-reset:hover {
  color: var(--primary-color);
  background-color: rgba(255, 59, 48, 0.1);
}

/* 自定义滑块样式 */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, #e9ecef 50%, #e9ecef 100%);
  outline: none;
  margin: 0.5rem 0;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.custom-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 动画效果 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderPulse {
  0% {
    border-color: rgba(var(--primary-color-rgb), 0.5);
  }
  50% {
    border-color: rgba(var(--primary-color-rgb), 1);
  }
  100% {
    border-color: rgba(var(--primary-color-rgb), 0.5);
  }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pulse-animation {
  animation: pulse 0.3s ease;
}

.rotate-animation {
  animation: rotate 0.5s ease;
}

/* 表单组悬停效果 */
.settings-group-hover {
  background-color: #f8f9fa;
}

/* 浮动标签焦点效果 */
.form-floating.focused label {
  color: var(--primary-color);
}

.form-floating input.has-value ~ label,
.form-floating textarea.has-value ~ label,
.form-floating select.has-value ~ label {
  opacity: .65;
  transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* 文本区域样式 */
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* 按钮样式 */
.btn {
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #2da446);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #40d866, var(--success-color));
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #0055b3, #007aff);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #007aff, #0055b3);
  transform: translateY(-2px);
}

.btn-info {
  background: linear-gradient(135deg, var(--info-color), #4ab3e4);
  color: white;
}

.btn-info:hover {
  background: linear-gradient(135deg, #6ad1ff, var(--info-color));
  transform: translateY(-2px);
}

/* 聊天容器 */
.chat-container {
  height: 450px;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  border: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.message-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
}

.parent-message .message-avatar {
  left: -40px;
  background-color: #e0e0e5;
}

.advisor-message .message-avatar {
  right: -40px;
  background-color: #007aff;
  color: white;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-avatar i {
  font-size: 20px;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  max-width: 80%;
  position: relative;
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.parent-message {
  background-color: #f0f0f5;
  align-self: flex-start;
  margin-right: auto;
  border-bottom-left-radius: 5px;
  margin-left: 45px; /* 为头像留出空间 */
}

.advisor-message {
  background-color: #47a3ff;
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 5px;
  margin-right: 45px; /* 为头像留出空间 */
}

/* 状态指示器 */
.status-container {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
}

.progress {
  height: 10px;
  margin-bottom: 15px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-value {
  position: absolute;
  right: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.progress-label span:last-child {
  font-weight: 600;
}

/* 评价容器 */
.review-container {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  padding: 25px;
  margin-top: 25px;
}

.review-container h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease;
}

.scale-in {
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 简化的滑动条样式 */
.simple-slider-container {
  padding: 10px 0;
}

/* 自定义滑块样式 */
input[type="range"].simple-slider {
  -webkit-appearance: none; /* Safari和Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none; /* 标准属性 */
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: #e9ecef;
  outline: none;
  transition: all 0.3s ease;
}

/* 滑块滑块样式 */
input[type="range"].simple-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Safari和Chrome */
  appearance: none; /* 标准属性 */
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

input[type="range"].simple-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

input[type="range"].simple-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
}

/* 滑块悬停效果 */
input[type="range"].simple-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input[type="range"].simple-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 滑块标签样式 */
.simple-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.simple-slider-value {
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(255, 59, 48, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
}

/* 重置按钮样式 */
.simple-slider-reset {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.simple-slider-reset:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* 消息内容样式 */
.message-content {
  word-break: break-word;
  line-height: 1.5;
  margin-bottom: 3px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
  align-self: flex-end;
  padding: 0 5px;
}

.parent-message .message-content {
  color: var(--text-color);
}

.advisor-message .message-content {
  color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .card {
    margin-bottom: 15px;
  }
  
  .message {
    max-width: 90%;
  }
}

/* 加载动画 */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  margin-left: 5px;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: black;
}

/* 页面标题 */
.page-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  margin: 10px auto 0;
  border-radius: 2px;
}

/* 面包屑导航样式 */
.breadcrumb-container {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.breadcrumb {
  margin-bottom: 0;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 500;
}

#sessionStatus .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  transition: all 0.3s ease;
}

/* 响应式面包屑 */
@media (max-width: 576px) {
  .breadcrumb-container {
    padding: 0.4rem 0.7rem;
    margin-bottom: 1rem;
  }
  
  .breadcrumb-item {
    font-size: 0.85rem;
  }
  
  #sessionStatus .badge {
    font-size: 0.7rem;
  }
}

/* 图标按钮 */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.icon-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}
