.talk-layout {
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr);
  gap: 15px;
  align-items: start;
}

.talk-control-panel,
.talk-result-panel {
  min-height: calc(100vh - 185px);
}

.talk-query-body {
  padding-bottom: 18px;
}

.talk-client-actions {
  justify-content: flex-start;
  margin-top: -4px;
  margin-bottom: 14px;
}

.talk-client-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.talk-client-summary > div {
  padding: 10px 12px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f7fbff;
}

.talk-client-summary .empty-state {
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
}

.talk-client-summary small,
.talk-client-summary b {
  display: block;
}

.talk-client-summary small {
  color: #7b8b9b;
  font-size: 10px;
}

.talk-client-summary b {
  margin-top: 4px;
  color: #263f58;
  font-size: 13px;
}

.market-news-customer-modal {
  width: min(760px, 92vw);
  max-height: 88vh;
  overflow: auto;
}

.market-news-customer-modal .modal-head p {
  margin: 4px 0 0;
  color: #6f8397;
  font-size: 12px;
}

.ai-key-panel {
  grid-template-columns: minmax(260px, 1fr) auto auto auto minmax(150px, auto) minmax(220px, 1fr) !important;
}

#baidu-model-test-status {
  color: #5f7184;
  font-size: 12px;
  white-space: normal;
  line-height: 1.45;
  padding-bottom: 7px;
}

.talk-project-list {
  max-height: 235px;
  overflow: auto;
  border: 1px solid #edf1f4;
  border-radius: 8px;
  background: #fbfcfd;
}

.talk-project-list h4 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid #edf1f4;
  background: #eef4f8;
  color: #526b82;
  font-size: 12px;
}

.talk-project-item {
  padding: 10px 12px;
  border-top: 1px solid #edf1f4;
}

.talk-project-item:first-child {
  border-top: 0;
}

.talk-project-item b,
.talk-project-item small {
  display: block;
}

.talk-project-item b {
  color: #263f58;
  line-height: 1.45;
  word-break: break-word;
}

.talk-project-item small {
  margin-top: 5px;
  color: #7e8f9f;
  font-size: 10px;
}

.talk-options {
  grid-template-columns: 1.1fr .9fr .75fr;
  margin-top: 14px;
}

.talk-topic-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 8px;
  padding: 0 20px 12px;
  overflow-x: auto;
}

.talk-topic {
  padding: 10px 8px;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  background: #fff;
  color: #526b82;
  font-weight: 700;
  white-space: nowrap;
}

.talk-topic:hover {
  border-color: #8eb9df;
  background: #f4f9fe;
}

.talk-topic.active {
  border-color: #2878c3;
  background: #2878c3;
  color: #fff;
}

.talk-run-actions {
  padding: 0 16px 8px;
  margin-top: 0;
  border-bottom: 1px solid #edf1f4;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.market-news-run-status {
  color: #6f8193;
  font-size: 12px;
  line-height: 1.4;
  margin-right: 6px;
  max-width: 320px;
}

.market-news-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px;
  padding: 0 16px 8px;
  border-bottom: 1px solid #edf1f4;
}

.market-news-tab {
  padding: 7px 10px;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  background: #fff;
  color: #526b82;
  font-weight: 700;
}

.market-news-tab.active {
  border-color: #2878c3;
  background: #2878c3;
  color: #fff;
}

.talk-result-content {
  height: calc(100vh - 230px);
  min-height: 500px;
  border-top: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
  white-space: normal;
  line-height: 1.35;
}

.market-news-list {
  display: grid;
  gap: 4px;
  max-width: 980px;
  width: 100%;
  margin: 0;
  white-space: normal;
}

.market-news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid #dfe8f1;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  white-space: normal;
}

.market-news-main {
  min-width: 0;
}

.market-news-main a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #174f82;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  text-decoration: none;
  white-space: normal;
  overflow: hidden;
}

.market-news-main a span {
  color: #7b8d9f;
  font-size: 11px;
  flex: 0 0 auto;
}

.market-news-main a:hover {
  text-decoration: underline;
}

.market-news-main small {
  display: block;
  margin-top: 2px;
  color: #7b8d9f;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-news-main p {
  margin: 4px 0 0;
  color: #304a63;
  font-size: 12px;
  line-height: 1.42;
}

.market-news-main em {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef7ff;
  color: #315c80;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.market-news-main em.business-hint {
  background: #fff7ef;
  color: #8b5b2b;
}

.market-news-card .favorite-news {
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1.2;
}

.market-news-card p {
  margin: 5px 0;
  color: #304a63;
  font-size: 13px;
  line-height: 1.45;
}

.market-news-note {
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #eef7ff;
  color: #315c80;
  font-size: 12px;
  line-height: 1.45;
}

.market-news-note b {
  margin-right: 6px;
  color: #1f6ca8;
}

.market-news-note.muted {
  background: #fff7ef;
  color: #8b5b2b;
}

.market-news-note.muted b {
  color: #c7641c;
}

.talk-result-content .baidu-reference-item {
  white-space: normal;
}

.talk-result-content .baidu-generated-answer {
  white-space: normal;
  line-height: 1.78;
}

.talk-result-content .baidu-generated-answer br {
  line-height: 1.9;
}

.talk-loading {
  font-size: 13px;
  line-height: 1.75;
}

.talk-source-warning {
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 12px 14px;
  border: 1px solid #f1c9a5;
  border-radius: 10px;
  background: #fff7ef;
  color: #9d4f12;
  line-height: 1.65;
}

.talk-source-warning b {
  color: #c7641c;
}

.talk-filter-warning {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #f3b4ae;
  border-radius: 10px;
  background: #fff1f1;
  color: #9f1f17;
  line-height: 1.65;
}

.talk-filter-warning b {
  color: #b42318;
}

.talk-report {
  max-width: 980px;
  margin: 0 auto;
  color: #263f58;
  font-size: 14px;
  line-height: 1.78;
}

.talk-report h2 {
  position: relative;
  margin: 22px 0 12px;
  padding: 10px 14px 10px 18px;
  border: 1px solid #dbe8f4;
  border-radius: 10px;
  background: #eef7ff;
  color: #174f82;
  font-size: 17px;
  letter-spacing: .3px;
}

.talk-report h2:first-child {
  margin-top: 0;
}

.talk-report h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: #2878c3;
}

.talk-report p,
.talk-report-list {
  margin: 0 0 12px;
  padding: 13px 15px;
  border: 1px solid #e2eaf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(34, 56, 78, .035);
}

.talk-report-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.talk-report-list li {
  position: relative;
  padding-left: 17px;
  word-break: break-word;
}

.talk-report-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .76em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef8c36;
}

.talk-label {
  display: inline-block;
  margin: 0 7px 3px 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff3e8;
  color: #c7641c;
  font-size: 12px;
  line-height: 1.5;
  vertical-align: baseline;
}

.talk-label.danger {
  background: #ffe9e9;
  color: #b42318;
  border: 1px solid #f3b4ae;
}

.talk-report a {
  color: #236eaf;
  font-weight: 700;
  text-decoration: none;
}

.talk-report a:hover {
  text-decoration: underline;
}

@media (max-width: 1280px) {
  .talk-layout {
    grid-template-columns: 1fr;
  }

  .talk-control-panel,
  .talk-result-panel {
    min-height: auto;
  }

  .talk-result-content {
    height: 520px;
  }

  .talk-topic-tabs {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
  }
}
