.input-container {
  fill: #fff;
  border: 1px solid #e0e3e6;
  border-radius: 16px;
  stroke-width: 2px;
  stroke: #d9d9d9;
  filter: drop-shadow(0px 0px 11px rgba(0, 0, 0, 0.05));
  transition: border-color 0.3s;
  overflow: hidden;
}
.input-box {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #fff;
  .edit-area {
    flex: 1;
    position: relative;
    max-height: 160px;
    overflow: hidden auto;
  }
  .pre-prompt {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    line-height: 1.7;
    background-color: #e6eaf0;
    border-radius: 4px;
    padding: 4px 8px 3px;
    font-size: 14px;
    font-weight: 500;
  }
  .content {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 14px;
    line-height: 30px;
  }
  .input-tools {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 10px;
  }
}
.message-scroll {
  margin: 10px 0;
  height: 600px;
  overflow-x: hidden;
  overflow-y: auto;
}
.message-item {
  display: flex;
  margin: 10px 0;
  &.user {
    justify-content: flex-end;
    .message-box {
      background-color: #0000000d;
    }
  }
  &.ai {
    .message-box {
      background-color: #fff;
    }
  }
  .message-box {
    max-width: 75%;
    border-radius: 12px;
  }
  .message-content {
    padding: 16px;
    // max-height: 300px;
    // overflow-y: auto;
  }
  .message-tools {
    padding: 16px;
    border-top: 1px solid #ececec;
  }
  .result-item {
    margin-top: 12px;
    p {
      margin-bottom: 12px;
      word-break: break-word !important;
    }
  }
}
.chapter-item {
  display: flex;
}
.chapter-left {
  display: flex;
  position: relative;
  color: #9ca3af;
  text-align: right;
  padding-right: 10px;
  .chapter-left-title {
    min-width: 60px;
    margin-top: 10px;
  }
  .line-dot {
    top: 18px;
    height: 100%;
    margin-left: 10px;
    position: relative;
    .dot {
      position: absolute;
      width: 7px;
      height: 7px;
      left: -3px;
      background-color: #e5e7eb;
      border-radius: 50%;
    }
    .line {
      width: 1px;
      height: 100%;
      background-color: #e5e7eb;
    }
  }
}
.chapter-right {
  flex: 1;
  display: flex;
  align-items: center;
  .chapter-right-content {
    flex: 1;
    padding: 10px;
    border-radius: 5px;

    &:hover {
      background-color: #e5e7eb;
    }
    h3,
    .chapter-title {
      padding: 0;
      font-size: 14px;
      font-weight: 600;
    }
    p,
    .chapter-desc {
      padding: 0;
      font-size: 13px;
      color: #999;
    }
  }
  &:hover {
    .chapter-right-tools {
      opacity: 1;
    }
  }
  .chapter-right-tools {
    opacity: 0;
  }
}

.message-file {
  margin-top: 10px;
  display: flex;
  width: 256px;
  border-radius: 12px;
  background-color: #fff;
  padding: 14px 16px;
  box-shadow: 0 2px 15px #0000000a;
  border: 0.5px solid #d9d9d9;
  a {
    color: currentColor;
  }
  .message-file-content {
    flex: 1;
    svg {
      margin-right: 10px;
      font-size: 20px;
      color: #b83956;
    }
  }
  .message-file-tools {
    svg {
      margin-left: 20px;
      font-size: 20px;
    }
  }

  &:hover {
    border: 0.5px solid #b83956;
  }
}
