/* 认知解析进度 & 对话思考流 */
.parse-progress-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius, 12px);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(15, 15, 20, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

.parse-progress-panel.hidden {
  display: none !important;
}

.parse-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.parse-progress-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.parse-progress-pct {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #818cf8, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.parse-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.parse-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #22d3ee);
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
  transition: width 0.25s ease-out;
}

@keyframes progress-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.parse-progress-steps {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  max-height: 9.5rem;
  overflow-y: auto;
}

.parse-progress-steps .parse-step {
  font-size: 0.78rem;
  padding: 0.28rem 0 0.28rem 1.1rem;
  position: relative;
  color: #64748b;
  transition: color 0.2s;
}

.parse-progress-steps .parse-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
}

.parse-progress-steps .parse-step.active {
  color: #e2e8f0;
  font-weight: 600;
}

.parse-progress-steps .parse-step.active::before {
  background: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}

.parse-progress-steps .parse-step.done {
  color: #94a3b8;
}

.parse-progress-steps .parse-step.done::before {
  background: #22c55e;
}

.parse-progress-status {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* 对话思考流 */
.msg-thinking-flow {
  max-width: 100% !important;
  border-color: rgba(129, 140, 248, 0.35) !important;
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.5), rgba(15, 15, 20, 0.95)) !important;
}

.think-flow-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}

.think-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  animation: think-pulse 1.2s ease-in-out infinite;
}

@keyframes think-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px #818cf8; }
}

.think-flow-steps {
  list-style: none;
  margin: 0 0 0.45rem;
  padding: 0;
}

.think-flow-steps .think-step {
  font-size: 0.75rem;
  padding: 0.2rem 0 0.2rem 0.85rem;
  position: relative;
  color: #475569;
}

.think-flow-steps .think-step::before {
  content: '○';
  position: absolute;
  left: 0;
  font-size: 0.55rem;
  top: 0.35rem;
  color: #475569;
}

.think-flow-steps .think-step.active {
  color: #c7d2fe;
  font-weight: 600;
}

.think-flow-steps .think-step.active::before {
  content: '◆';
  color: #818cf8;
}

.think-flow-steps .think-step.done {
  color: #64748b;
}

.think-flow-steps .think-step.done::before {
  content: '✓';
  color: #22c55e;
}

.think-flow-current {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}
