/* 思考过程 + 检索摘要（对话内） */

.tr-process {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.tr-think {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  overflow: hidden;
}

.tr-think-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: none;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.tr-think-head:hover {
  background: #fafafa;
}

.tr-think-chevron {
  display: inline-flex;
  color: #bfbfbf;
  transition: transform 0.2s ease;
}

.tr-think.is-collapsed .tr-think-chevron {
  transform: rotate(180deg);
}

.tr-think-body {
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-think.is-collapsed .tr-think-body {
  display: none;
}

.tr-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f6f7f9;
  border-radius: 8px;
  font-size: 13px;
  color: #bfbfbf;
  line-height: 1.4;
}

.tr-step.is-done {
  color: #1f1f1f;
}

.tr-step-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #d9d9d9;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tr-step.is-done .tr-step-icon {
  border-color: #e60012;
  background: #e60012;
  color: #fff;
}

.tr-step.is-active .tr-step-icon {
  border-color: #e60012;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.tr-retrieve {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 12px 14px 14px;
}

.tr-retrieve.is-hidden {
  display: none;
}

.tr-retrieve-status {
  margin: 0 0 8px;
  font-size: 13px;
  color: #1f1f1f;
  line-height: 1.5;
}

.tr-retrieve-intro {
  margin: 0 0 8px;
  font-size: 13px;
  color: #595959;
  line-height: 1.6;
}

.tr-retrieve-list {
  margin: 0;
  padding-left: 22px;
  color: #1f1f1f;
  font-size: 13px;
  line-height: 1.8;
}

.tr-retrieve-item {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.tr-retrieve-item:hover {
  color: #e60012;
}

.tr-think,
.tr-retrieve {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tr-process.is-compact .tr-think-head {
  padding: 10px 12px;
  font-size: 13px;
}

.tr-process.is-compact .tr-step {
  padding: 8px 10px;
  font-size: 12px;
}

.tr-process.is-compact .tr-retrieve {
  padding: 10px 12px 12px;
}

.tr-process.is-compact .tr-retrieve-status,
.tr-process.is-compact .tr-retrieve-intro,
.tr-process.is-compact .tr-retrieve-list {
  font-size: 12px;
}

.tr-artifacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  align-self: flex-start;
}

.gya-msg-group .tr-artifacts {
  max-width: 80%;
}

.gya-msg-group .yxk-bubble ~ .tr-artifacts,
.tr-artifacts.is-compact {
  max-width: 85%;
}

.tr-artifact {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: #f5f5f5;
  color: #1f1f1f;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.tr-artifact:hover {
  background: #efefef;
}

.tr-artifact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tr-artifact-icon.is-pdf {
  background: #fff1f0;
  color: #ff4d4f;
}

.tr-artifact-icon.is-docx {
  background: #e6f4ff;
  color: #1677ff;
}

.tr-artifact-icon.is-md {
  background: #e6fffb;
  color: #13c2c2;
}

.tr-artifact-icon.is-html {
  background: #f9f0ff;
  color: #722ed1;
}

.tr-artifact-icon.is-file {
  background: #f0f0f0;
  color: #8c8c8c;
}

.tr-artifact-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-artifact-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-artifact-meta {
  font-size: 12px;
  color: #8c8c8c;
  line-height: 1.35;
}

.tr-artifact-arrow {
  flex-shrink: 0;
  color: #bfbfbf;
  display: inline-flex;
}

.tr-artifact-all {
  align-self: flex-start;
  margin: 2px 0 0;
  padding: 0;
  border: none;
  background: none;
  color: #8c8c8c;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tr-artifact-all:hover {
  color: #e60012;
}

.tr-artifacts.is-compact .tr-artifact {
  padding: 8px 10px;
  border-radius: 10px;
}

.tr-artifacts.is-compact .tr-artifact-icon {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.tr-artifacts.is-compact .tr-artifact-name {
  font-size: 12px;
}

.tr-artifacts.is-compact .tr-artifact-meta,
.tr-artifacts.is-compact .tr-artifact-all {
  font-size: 12px;
}
