.body_box {
  overflow-y: auto;
}
.body_box .content_box {
  width: 100%;
  height: auto;
  min-height: 580px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.body_box .content_box .safety_width {
  max-width: 1400px;
  margin: auto;
}
.body_box .content_box .safety_width .part1 {
  height: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-image: url(/public/images/4804c5ba1b96ccfacbd387c26d719f69.png);
  padding-top: 80px;
}
.body_box .content_box .safety_width .part1 .part1_title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 54px;
  color: #000;
  font-weight: 500;
  text-align: center;
}
.body_box .content_box .safety_width .part1 .part1_title > span {
  color: var(--primary-color);
}
.body_box .content_box .safety_width .part1 .part1_content {
  font-size: 26px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: #4b525b;
  font-weight: 300;
  text-align: center;
  margin-top: 20px;
}
.body_box .content_box .safety_width .part1_en {
  background-image: url(/public/images/921a32c3a48b5e852265159ec2841b7e.png);
}
.body_box .content_box .safety_width .part2 .en_title {
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 60px;
  font-weight: bold;
  background-image: linear-gradient(to bottom, #d6eaff 0%, rgba(214, 234, 255, 0) 100%) !important;
  -webkit-background-clip: text;
  /* 关键：背景裁剪到文字 */
  -webkit-text-fill-color: transparent;
  /* 文字填充色透明 */
}
.body_box .content_box .safety_width .part2 .zh_title {
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 42px;
  margin-top: -20px;
  color: #404040;
  font-weight: bold;
}
.body_box .content_box .safety_width .part2 .zh_title > span {
  color: var(--primary-color);
}
.body_box .content_box .safety_width .part2 .small_title {
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 24px;
  color: #777c94;
  margin-bottom: 120px;
  margin-top: 10px;
  font-weight: 300;
}
.body_box .content_box .safety_width .part2 .box {
  display: flex;
  /* 弹性布局，使小盒子横向排列 */
  justify-content: space-between;
  /* 自动分配间距（需配合计算宽度） */
  box-sizing: border-box;
  /* 确保内边距和边框不影响尺寸 */
}
.body_box .content_box .safety_width .part2 .box .small_box {
  display: flex;
  /* 使用 Flexbox 布局 */
  align-items: center;
  /* 垂直居中对齐 */
  width: 680px;
  height: 246px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 33px 62px 0px rgba(179, 208, 255, 0.26);
  position: relative;
  overflow: hidden;
}
.body_box .content_box .safety_width .part2 .box .small_box img {
  position: absolute;
  right: 0;
  bottom: 1px;
}
.body_box .content_box .safety_width .part2 .box .small_box .small_box_title {
  font-size: 24px;
  color: #404040;
}
.body_box .content_box .safety_width .part2 .box .small_box .small_box_title_c {
  font-size: 18px;
  line-height: 32px;
  color: #777c94;
  font-weight: normal;
}
.body_box .content_box .safety_width .part2 .box .small_box .small_box_content {
  font-size: 16px;
  color: #404040;
  margin-top: 28px;
}
.body_box .content_box .safety_width .part2 .box .small_box_a {
  display: flex;
  /* 使用 Flexbox 布局 */
  align-items: center;
  /* 垂直居中对齐 */
  width: 100%;
  height: 236px;
  margin-top: 40px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 33px 62px 0px rgba(179, 208, 255, 0.26);
  position: relative;
}
.body_box .content_box .safety_width .part2 .box .small_box_a img {
  position: absolute;
  right: 0;
  bottom: 1px;
}
.body_box .content_box .safety_width .part2 .box .small_box_a .small_box_title {
  font-size: 24px;
  color: #404040;
}
.body_box .content_box .safety_width .part2 .box .small_box_a .small_box_title_c {
  font-size: 18px;
  line-height: 32px;
  color: #777c94;
  font-weight: normal;
}
.body_box .content_box .safety_width .part2 .box .small_box_a .small_box_content {
  font-size: 16px;
  color: #404040;
  margin-top: 28px;
}
.body_box .content_box .safety_width .part2 .box .small_box1 {
  width: 360px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 33px 62px 0px rgba(179, 208, 255, 0.26);
  padding: 40px;
}
.body_box .content_box .safety_width .part2 .box .small_box1 .small_box_title {
  font-size: 24px;
  font-weight: bold;
  color: #404040;
  display: flex;
  align-items: center;
  /* 垂直居中 */
  gap: 6px;
  /* 图片和文字之间留点间距，可调整 */
}
.body_box .content_box .safety_width .part2 .box .small_box1 .small_box_content {
  margin-top: 20px;
  font-size: 18px;
  color: #404040;
}
.body_box .content_box .safety_width .part4 {
  background-image: url(/public/images/1cbdcfbc22a0d1d64b1fd5358c4a63fc.png);
  height: 446px;
  background-position: bottom;
  background-repeat: no-repeat;
  text-align: center;
}
.body_box .content_box .safety_width .part4 .zh_title,
.body_box .content_box .safety_width .part4 .small_title {
  color: #fff;
}
.body_box .content_box .safety_width .part4 .small_title {
  font-weight: lighter;
  margin-bottom: 86px;
}
.body_box .content_box .safety_width .part4 .en_title {
  background-image: linear-gradient(to bottom, rgba(214, 234, 255, 0.3) 0%, rgba(214, 234, 255, 0) 88%) !important;
  -webkit-background-clip: text;
  /* 关键：背景裁剪到文字 */
  -webkit-text-fill-color: transparent;
  /* 文字填充色透明 */
  padding-top: 50px;
}
.body_box .content_box .safety_width .part4 .button_experience {
  width: 160px;
  height: 54px;
  border-radius: 10px;
  background-color: #fff;
  color: var(--primary-color);
  font-size: 18px;
  text-align: center;
  line-height: 54px;
  display: inline-block;
  cursor: pointer;
}
.body_box .bg1 {
  width: 100%;
  background-color: #d9ebff;
}
.body_box .bg2 {
  width: 100%;
  background-image: url(/public/images/f78948055ae0f290a8e24abdd08b2ca4.png);
  padding-bottom: 160px;
  padding-top: 100px;
}
.body_box .bg3 {
  width: 100%;
  background-color: #f0f6ff;
  padding-bottom: 160px;
  padding-top: 90px;
}
.body_box .bg4 {
  width: 100%;
  background-color: var(--primary-color);
  height: 446px !important;
  min-height: unset !important;
}
@keyframes img-anim {
  0% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}
@media only screen and (max-width: 1440px) {
  .body_box .content_box .safety_width,
  .body_box .content_box .safety_width .part1 .slogan_content_box {
    width: 92%;
    gap: 14px;
  }
  .body_box .content_box .safety_width .part1 .slogan_content_box .small_box {
    width: 32%;
    display: flex;
  }
  .body_box .content_box .safety_width .part1 .slogan_content_box .small_box .small_box_text > p {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 显示的行数 */
    overflow: hidden;
  }
  .body_box .content_box .safety_width .part2 .box {
    gap: 20px;
  }
  .body_box .content_box .safety_width .part1 .slogan_content_box .small_box .small_box_text > span {
    margin-bottom: 10px;
  }
}
/* 媒体查询：小屏幕设备（如手机） */
@media only screen and (max-width: 767px) {
  .body_box {
    overflow: hidden;
  }
  .content_box .safety_width {
    padding: 0 15px;
  }
  .part1 {
    height: auto;
    padding-bottom: 100px;
  }
  .slogan_box {
    font-size: 30px !important;
    line-height: 40px !important;
    padding: 30px 0;
  }
  .slogan_box .idlink {
    font-size: 40px;
  }
  .slogan_content_box {
    width: 100%;
    position: static !important;
    flex-direction: column;
    align-items: center;
  }
  .slogan_content_box .small_box {
    width: 100%;
    margin-bottom: 20px;
  }
  .part2 .en_title {
    font-size: 40px;
  }
  .part2 .zh_title {
    font-size: 30px;
    margin-top: -20px;
  }
  .part2 .small_title {
    font-size: 20px;
    margin-bottom: 60px;
  }
  .part2 .box {
    flex-direction: column;
    align-items: center;
  }
  .part2 .box .small_box {
    width: 100%;
    margin-bottom: 20px;
  }
  .body_box .content_box .safety_width .part1 {
    display: block !important;
    width: 100% !important;
  }
  .body_box .content_box .safety_width .part1 .slogan_content_box {
    display: block !important;
    width: 100% !important;
  }
  .slogan_content_box {
    z-index: 999 !important;
  }
  .body_box .content_box .safety_width .part1 .slogan_content_box .small_box {
    width: 100% !important;
  }
  .main_header .header_middle {
    min-width: auto !important;
  }
  .body_box .bg2 {
    background-image: none !important;
  }
  .body_box .content_box .safety_width .part2 .box .small_box {
    width: 100%;
  }
  .main_footer .footer_bottom .footer_bottom_filings {
    display: inline-block;
  }
}
/* 媒体查询：中等屏幕设备（如平板） */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .body_box {
    overflow: hidden;
  }
  .content_box .safety_width {
    padding: 0 30px;
  }
  .slogan_content_box {
    width: 100%;
  }
  .slogan_content_box .small_box {
    width: 30%;
  }
  .part2 .box .small_box {
    width: 30%;
  }
  .body_box .content_box .safety_width .part1 {
    display: block !important;
  }
  .body_box .content_box .safety_width .part1 .slogan_content_box {
    display: block !important;
  }
  .body_box .bg1 {
    z-index: 999 !important;
  }
  .body_box .content_box .safety_width .part1 .slogan_content_box .small_box {
    width: 100% !important;
  }
  .main_header .header_middle {
    min-width: auto !important;
  }
  .body_box .bg2 {
    background-image: none !important;
  }
  .body_box .content_box .safety_width .part2 .box .small_box {
    width: 100%;
  }
  .main_footer .footer_bottom .footer_bottom_filings {
    display: inline-block;
  }
}

.login_msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #fff;
}
.login_msg .login_msg_content_box {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}
.login_msg .login_msg_content_box .login_msg_content_img {
  width: 200px;
  margin-bottom: 20px;
  margin-top: -16vh;
}
.login_msg .login_msg_content_box .login_msg_content {
  font-size: 14px;
  font-weight: normal;
  color: #404040;
  margin-bottom: 30px;
  max-width: 480px;
  text-align: center;
  padding: 20px;
  background-color: #f7f6fb;
  border-radius: 6px;
}
.login_msg .login_msg_content_box .return_button {
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 30px;
  color: #7e96ff;
  border: 1px solid #7e96ff;
  background-color: #ffffff;
  transition: all 0.3s ease;
}
.login_msg .login_msg_content_box .return_button:hover {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.markdown-container {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  width: 734px;
}
.markdown-container > :first-child {
  margin-top: 0 !important;
}
.markdown-container .markdown-h1 {
  font-size: 2em;
  font-weight: bold;
  margin: 0.67em 0;
}
.markdown-container .markdown-h2 {
  font-size: 1.75em;
  font-weight: bold;
  margin: 0.67em 0;
}
.markdown-container .markdown-h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.67em 0;
}
.markdown-container .markdown-p {
  margin: 1em 0;
  font-size: 1em;
  color: #333;
}
.markdown-container .markdown-ul {
  margin: 1em 0;
  padding-left: 1.5em;
  list-style-type: disc;
}
.markdown-container .markdown-li {
  margin: 0.5em 0;
  font-size: 1em;
}
.markdown-container .markdown-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}
.markdown-container .markdown-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.markdown-container .markdown-table-head {
  background-color: #f5f5f5;
}
.markdown-container .markdown-table-header {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  font-weight: bold;
}
.markdown-container .markdown-table-cell {
  padding: 12px;
  border: 1px solid #ddd;
}
.markdown-container .markdown-table-row:nth-child(even) {
  background-color: #f9f9f9;
}
.markdown-container .markdown-table-row:hover {
  background-color: #f1f1f1;
}
.markdown-container .markdown-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}
.markdown-container .markdown-hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 16px 0;
}
.markdown-container .markdown-em {
  font-style: italic;
  color: #555;
}
.markdown-container .markdown-strong {
  font-weight: 600;
  color: #333;
}
.markdown-container .markdown-inline-code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  color: #d63384;
}
.markdown-container .markdown-code-block {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  color: #333;
  overflow-x: auto;
  margin: 0px;
}
.markdown-container .markdown-code-block code {
  display: block;
  white-space: pre-wrap;
}
.markdown-container .code-block-container {
  margin-bottom: 16px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  overflow: hidden;
}
.markdown-container .code-block-container .code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-bottom: 1px solid #eaeaea;
}
.markdown-container .code-block-container .code-block-header .code-block-language {
  font-size: 12px;
  font-weight: bold;
  color: var(--primary-color);
}
.markdown-container .code-block-container .code-block-header .code-block-copy-btn {
  font-size: 12px;
  color: var(--primary-color);
}
.markdown-container .code-block-container .code-block-header .code-block-copy-btn:hover {
  color: #003d99;
}
.markdown-container .markdown-blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid var(--primary-color);
  background-color: #f9f9f9;
  font-style: italic;
  color: #666;
}
.markdown-container .markdown-link {
  color: var(--primary-color);
  text-decoration: underline;
}
.markdown-container .markdown-link:hover {
  color: #003d99;
}
.markdown-container .markdown-alert {
  padding: 12px;
  border-radius: 4px;
  margin: 16px 0;
}
.markdown-container .markdown-alert:first-child {
  margin-top: 0px !important;
}
.markdown-container .thinking .thinking-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 40px;
  background-color: #f9f9f9;
  padding: 0px 15px;
  border-radius: 10px;
  width: 120px;
  cursor: pointer;
}
.markdown-container .thinking .thinking-content {
  border-left: 3px solid #ddd;
  padding-left: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}
.markdown-container .markdown-tool {
  margin: 12px 0;
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #eaeaea;
}
.markdown-container .markdown-tool .tool-name .tool-name-text {
  display: inline-block;
  margin-right: 20px;
}
.markdown-container .markdown-tool .tool-name .tool-name-loading {
  color: #0b3ee7;
}
.markdown-container .markdown-tool .tool-summary {
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.markdown-container .markdown-tool .tool-summary .tool-status {
  float: right;
}
.markdown-container .markdown-tool .tool-summary .tool-status.success {
  color: #1cd635;
}
.markdown-container .markdown-tool .tool-summary .tool-status.error {
  color: #ff4d4f;
}
.markdown-container .markdown-tool .tool-result {
  margin-top: 20px;
}
.markdown-container .markdown-tool-collapse {
  margin: 12px 0;
  background-color: transparent;
}
.markdown-container .markdown-tool-collapse .ant-collapse-item {
  border: 0;
}
.markdown-container .markdown-tool-collapse .ant-collapse-item .ant-collapse-header {
  background: #f5f5f5;
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.85);
}
.markdown-container .markdown-tool-collapse .ant-collapse-item .ant-collapse-header .arrow {
  left: auto;
  right: 16px;
}
.markdown-container .markdown-tool-collapse .ant-collapse-item .ant-collapse-content {
  border: 0;
  background: transparent;
}
.markdown-container .markdown-tool-collapse .tool-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 16px;
}
.markdown-container .markdown-tool-collapse .tool-status {
  margin-left: 8px;
  margin-right: 20px;
}
.markdown-container .markdown-tool-collapse .tool-status.success {
  color: #52c41a;
}
.markdown-container .markdown-tool-collapse .tool-status.error {
  color: #f5222d;
}
.markdown-container .markdown-tool-collapse .tool-result {
  padding: 12px;
  background: #fff;
  border-radius: 4px;
  margin-top: 8px;
}

.id-mcp-container {
  display: flex;
  width: 100%;
  height: 100vh;
  background-color: #f9f9fb;
  justify-content: center;
  /* 左侧历史消息列表 */
}
.id-mcp-container .history-sidebar {
  width: 260px;
  height: calc(100vh - 20px);
  background-color: #f9f9fb;
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-radius: 0;
}
.id-mcp-container .history-sidebar .logo {
  font-size: 20px;
  font-weight: bold;
  padding: 0 20px;
  margin-bottom: 20px;
  color: #333;
  text-transform: uppercase;
}
.id-mcp-container .history-sidebar .new-chat-btn {
  padding: 8px 12px;
  margin-bottom: 20px;
  font-size: 20px;
  background-color: aliceblue;
  min-width: 150px;
  max-width: 180px;
  margin-left: 12px;
  border-radius: 27px;
  padding-left: 22px;
  color: #113bdd;
  cursor: pointer;
}
.id-mcp-container .history-sidebar .new-chat-btn svg {
  width: 20px;
  margin-bottom: -6px;
  margin-right: 10px;
}
.id-mcp-container .history-sidebar .tabs-row {
  margin: 0 12px;
  padding-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}
.id-mcp-container .history-sidebar .tabs-row .tab-item {
  padding: 8px 0;
  cursor: pointer;
}
.id-mcp-container .history-sidebar .tabs-row .tab-item.active {
  background-color: rgba(13, 127, 225, 0.1);
  border-radius: 20px;
  color: #000;
}
.id-mcp-container .history-sidebar .tabs-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.id-mcp-container .history-sidebar .history-list {
  flex: 1;
  overflow-y: auto;
  /* 滚动条样式（更浅色） */
}
.id-mcp-container .history-sidebar .history-list::-webkit-scrollbar {
  width: 8px;
  background: #f8f8f8;
  /* 背景色更浅 */
}
.id-mcp-container .history-sidebar .history-list::-webkit-scrollbar-track {
  background: #f8f8f8;
  /* 轨道颜色更浅 */
}
.id-mcp-container .history-sidebar .history-list::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  /* 滑块颜色更浅 */
  border-radius: 4px;
}
.id-mcp-container .history-sidebar .history-list::-webkit-scrollbar-thumb:hover {
  background: #c7c7c7;
  /* 悬停时稍深，但仍保持较浅 */
}
.id-mcp-container .history-sidebar .history-list .history-group {
  margin-bottom: 16px;
}
.id-mcp-container .history-sidebar .history-list .group-title {
  font-size: 12px;
  color: #999;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.id-mcp-container .history-sidebar .history-list .history-item {
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
  position: relative;
}
.id-mcp-container .history-sidebar .history-list .history-item.active {
  background-color: rgba(13, 127, 225, 0.1);
  border-radius: 10px;
}
.id-mcp-container .history-sidebar .history-list .history-item.active .history-item-actions {
  opacity: 1;
}
.id-mcp-container .history-sidebar .history-list .history-item.active .history-item-delete {
  opacity: 1;
}
.id-mcp-container .history-sidebar .history-list .history-item .history-item-actions {
  opacity: 0;
  z-index: 1;
  border-radius: 8px;
  outline: none;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: flex;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.id-mcp-container .history-sidebar .history-list .history-item:hover {
  background-color: rgba(13, 127, 225, 0.05);
  border-radius: 10px;
}
.id-mcp-container .history-sidebar .history-list .history-item:hover .history-item-actions {
  opacity: 1;
  background-color: #fff;
}
.id-mcp-container .history-sidebar .history-list .history-item:hover .history-item-delete {
  opacity: 1;
}
.id-mcp-container .history-sidebar .history-list .history-item .history-item-delete {
  position: absolute;
  top: 50%;
  right: 10px;
  opacity: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  transform: translateY(-50%);
}
.id-mcp-container .history-sidebar .history-list .history-item .history-item-delete .delete-icon {
  color: #f00;
}
.id-mcp-container .history-sidebar .user-profile {
  padding: 12px;
  border-top: 1px solid #eaeaea;
}
.id-mcp-container .history-sidebar .user-profile .user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.id-mcp-container .history-sidebar .user-profile .user-info > span {
  margin-right: 8px;
}
.id-mcp-container .history-sidebar .user-profile .user-info:hover {
  background-color: #f0f0f0;
}
.id-mcp-container .history-sidebar .user-profile .to-mcp-service {
  line-height: 32px;
  border: 1px solid #0f14b3;
  margin-bottom: 10px;
  border-radius: 8px;
  display: block;
}
.id-mcp-container .history-sidebar .user-profile .to-mcp-service svg {
  width: 42px;
  height: 24px;
  margin-bottom: -8px;
}
.id-mcp-container .history-sidebar .user-profile .to-mcp-service span {
  color: #101111;
}
.id-mcp-container .chat-container {
  display: flex;
  flex-direction: column;
  width: calc(100% - 220px);
  /* 左侧历史消息列表宽度为240px，右侧占剩余空间 */
  height: 100vh;
  background-color: #fff;
  /* 主聊天区域 */
}
.id-mcp-container .chat-container .chat-title {
  height: 48px;
  /* 标题区域高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  padding: 0 20px;
}
.id-mcp-container .chat-container .chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #fff;
  max-width: none;
  margin-left: 20px;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  /* 滚动条样式（更浅色） */
}
.id-mcp-container .chat-container .chat-main::-webkit-scrollbar {
  width: 8px;
  background: #f8f8f8;
  /* 背景色更浅 */
}
.id-mcp-container .chat-container .chat-main::-webkit-scrollbar-track {
  background: #f8f8f8;
  /* 轨道颜色更浅 */
}
.id-mcp-container .chat-container .chat-main::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  /* 滑块颜色更浅 */
  border-radius: 4px;
}
.id-mcp-container .chat-container .chat-main::-webkit-scrollbar-thumb:hover {
  background: #c7c7c7;
  /* 悬停时稍深，但仍保持较浅 */
}
.id-mcp-container .chat-container .chat-main .chat-messages {
  flex: 1;
  width: 800px;
  margin: auto;
  padding: 20px 0px;
  display: flex;
  flex-direction: column;
}
.id-mcp-container .chat-container .chat-main .chat-messages .message-item {
  transition: all 0.3s;
}
.id-mcp-container .chat-container .chat-main .chat-main-box {
  position: sticky;
  bottom: 0px;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area {
  padding: 16px 0px;
  background-color: #fff;
  width: 800px;
  display: flex;
  flex-direction: column;
  margin: auto;
  position: relative;
  /* 底部输入区域 */
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .down-icon {
  pointer-events: all;
  color: #262626;
  cursor: pointer;
  background-color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  display: flex;
  position: absolute;
  bottom: 100%;
  right: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ededed;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .input-container {
  background-color: #f5f5f7;
  border-radius: 20px;
  padding: 8px 12px;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .input-container .ant-input {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 0;
  font-size: 14px;
  resize: none;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .input-container .ant-input:focus {
  box-shadow: none;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .mcp-tools {
  display: flex;
  align-items: center;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .mcp-tools .action-btn {
  margin-right: 8px;
  background-color: #fff;
  cursor: pointer;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 0px 8px;
  display: flex;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .mcp-tools .action-btn svg {
  width: 20px;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .mcp-tools .action-btn.active {
  color: #113bdd;
  background-color: rgba(17, 59, 221, 0.1);
  border-color: #113bdd;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .mcp-tools .action-btn:hover {
  background-color: rgba(17, 59, 221, 0.1);
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .footer-info {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin-top: 12px;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .footer-info .mcp-tool-selector {
  display: flex;
  align-items: center;
}
.id-mcp-container .chat-container .chat-main .chat-main-box .chat-input-area .footer-info .mcp-tool-selector span {
  margin-right: 8px;
}
/* 消息列表样式 */
.message-item {
  display: flex;
  margin-bottom: 40px;
}
.message-item .message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}
.message-item .message-bubble .message-content {
  line-height: 1.5;
}
.message-item .message-bubble .message-time {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  text-align: right;
  margin-top: 4px;
}
.message-item .message-end {
  display: none;
}
.message-item:hover .message-end {
  display: block;
}
.message-item.user {
  justify-content: flex-end;
  flex-direction: row-reverse;
  align-self: flex-end;
}
.message-item.user .ant-list-item-meta {
  flex-direction: row-reverse;
}
.message-item.user .message-bubble {
  background-color: #eff6ff;
  color: #262626;
}
.message-item.user .message-content {
  position: relative;
}
.message-item.user .message-content .message-end {
  position: absolute;
  bottom: -46px;
  width: 100%;
  height: 50px;
  line-height: 60px;
  right: 0px;
  text-align: right;
  cursor: pointer;
}
.message-item.user:nth-last-child(2) .message-end {
  display: block;
}
.message-item.ai .ant-list-item-meta {
  flex-direction: row;
}
.message-item.ai .message-bubble {
  padding-top: 0px;
}
.message-item.ai .message-content {
  position: relative;
}
.message-item.ai .message-content .message-end {
  position: absolute;
  bottom: -24px;
  width: 100%;
  height: 50px;
  line-height: 60px;
  left: 15px;
  cursor: pointer;
}
.message-item.ai:last-child .message-end {
  display: block;
}
.message-avatar {
  margin: 0 8px;
}
.message-bubble.user {
  background-color: #1890ff;
  color: white;
  border-top-right-radius: 4px;
  margin-left: auto;
}
.message-bubble.user .message-time {
  color: rgba(255, 255, 255, 0.65);
}
.message-bubble.ai {
  background-color: #f0f0f0;
  color: #333;
  border-top-left-radius: 4px;
  margin-right: auto;
}
.message-bubble.ai .message-bubble {
  background-color: #f5f5f7;
  color: #333;
}
.message-bubble.loading {
  padding: 8px 16px !important;
  min-width: 60px;
  display: flex;
  justify-content: center;
}

