/* 科研中心 · 智能体广场 */

.workspace__panel--research {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.research {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
}

/* —— 主区 —— */
.research__main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  padding: 20px 24px 28px;
  background: #fff;
}

.research__head {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.research__meta {
  font-size: 13px;
  line-height: 20px;
  color: #909399;
}

.research__section {
  margin-bottom: 20px;
}

.research__section:last-child {
  margin-bottom: 0;
}

.research__banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.research__banner-title {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: #303133;
  white-space: nowrap;
}

.research__banner-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  line-height: 18px;
}

.research__banner--purple {
  background: linear-gradient(90deg, #f3eefc 0%, #faf7ff 100%);
}
.research__banner--purple .research__banner-tags {
  color: #8b6cc7;
}

.research__banner--violet {
  background: linear-gradient(90deg, #eeeafc 0%, #f6f4ff 100%);
}
.research__banner--violet .research__banner-tags {
  color: #7a6fd0;
}

.research__banner--peach {
  background: linear-gradient(90deg, #fff3e8 0%, #fffaf5 100%);
}
.research__banner--peach .research__banner-tags {
  color: #c48a4a;
}

.research__banner--blue {
  background: linear-gradient(90deg, #eaf4ff 0%, #f5faff 100%);
}
.research__banner--blue .research__banner-tags {
  color: #4a8fd0;
}

.research__banner--green {
  background: linear-gradient(90deg, #e9f8ef 0%, #f4fcf7 100%);
}
.research__banner--green .research__banner-tags {
  color: #3a9b6a;
}

.research__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agent-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.agent-card:hover {
  border-color: #d6e4ff;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.1);
}

.agent-card__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.agent-card__icon--blue {
  background: #e8f3ff;
  color: #1677ff;
}
.agent-card__icon--red {
  background: #ffecec;
  color: #f04545;
}
.agent-card__icon--green {
  background: #e8f8ef;
  color: #28b28b;
}
.agent-card__icon--purple {
  background: #f1ecff;
  color: #7a5af8;
}
.agent-card__icon--orange {
  background: #fff1e6;
  color: #e67e22;
}
.agent-card__icon--pink {
  background: #ffe8f0;
  color: #e85a8c;
}

.agent-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.agent-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #303133;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-card__desc {
  font-size: 12px;
  line-height: 18px;
  color: #909399;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
