.infoDiv {
  border-radius: 5px;
  transition: all 0.1s ease;
  border: 1px solid #3d90d7;
  font-size: 18px;
  padding: 11px;
}


.infoDiv:hover {
  background-color: #f0f0f0;
  border: 2px solid #6f00ff;
  cursor: pointer;
}

.typerChange {
  background-color: #3d90d7;
  width: 120px;
  height: 40px;
  color: white;
  font-weight: bold;
  border-radius: 3px;
  border: none;
}

.typerChange.active {
  border: 2px solid black;
  background-color: #3d90d7;
  color: white;
}

.timestamp {
  text-align: center;
  font-size: 10px;
  color: #555;
}

.conversation-turn {
  margin-bottom: 15px;
}

.user-question {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: 5px;
}

.user-bubble {
  margin-top: 9px;
  margin-right: 5px;
  max-width: 300px;
  background-color: #f0f0f0;
  border-radius: 10px;
  line-height: 1.4;
  padding: 8px 12px;
  font-size: 16px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.ai-reply {
  margin-top: 4px;
  background-color: #ffffff;
  border-left: 3px solid #6f00ff;
  padding: 4px 4px;
  line-height: 1;
  font-size: 16px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.userAvatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid black;
}

#TKanaBtn {
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: #6fe6fc;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#TKrequest {
  flex: 1;
  margin-right: 10px;
  padding: 8px;
  box-sizing: border-box;
  resize: none;
  border: 2px solid #59ac77;
  border-radius: 4px;
  font-size: 14px;
  min-height: 40px;
  max-height: 200px;
  /* 限制最大高度，超过时滚动 */
  overflow-y: auto;
}

#TKform {
  position: absolute;
  bottom: 37px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-end;
}

#AdditionalChoiceDiv {
  position: absolute;
  left: 9px;
  bottom: 2px;
  display: flex;
}

#DailyKSVG {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#DailyKSVG:hover {
  transform: scale(1.15);
}

#RAGSVG {
  margin-left: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #767272;
}

#RAGSVG:hover {
  transform: scale(1.15);
}

.infoTab {
  background: none;
  border: none;
  font-size: 16px;
  padding: 10px 20px;
  color: #555;
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.infoTab:hover {
  color: #222;
}

.infoTab.active {
  color: #3d90d7;
  border-bottom: 3px solid #3d90d7;
  font-weight: 600;
}

#InfoContainer {
  background-color: #ffffff;
  left: 1150px;
  top: 25px;
  width: 425px;
  margin-left: 40px;
  height: 820px;
  position: absolute;
  border-radius: 5px;
}

#minKline {
  width: 1200px;
  height: 600px;
}

#kline {
  width: 1200px;
  height: 600px;
}

#tableContainer {
  background-color: #ffffff;
  width: 1100px;
  border-radius: 5px;
  position: relative;
  left: 50px;
  top: 25px;
}

#changeType {
  display: flex;
  margin-top: 50px;
  margin-left: 35px;
}

#TKanaImg {
  width: 20px; /* 初始大小 */
  height: 20px;
  transition: transform 0.3s ease, width 0.2s ease, height 0.2s ease;
}

#TKanaBtn:hover #TKanaImg {
  content: url("../icon/load_hover.svg");
  transform: scale(1.2); /* 放大 */
  animation: shake 0.5s ease-in-out infinite; /* 抖动动画 */
}
/* 抖动动画 */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(5px);
  }
}

/* 手机端配置 */
@media (max-width: 768px) {
  /* 整体竖直布局 */
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f0f2f5;
  }

  /* 主容器纵向排列 */
  body > div[style*="display: flex"][style*="align-items"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: static !important;
    width: 100% !important;
  }

  /* 隐藏 K 线图部分 */
  #tableContainer,
  #minKline,
  #kline {
    display: none !important;
  }

  /* 中间按钮区（只留切换按钮） */
  .typerChange {
    width: 100px !important;
    height: 38px !important;
    font-size: 14px !important;
    font-weight: 600;
    border-radius: 5px;
    margin: 10px 6px !important;
  }

  body > div[style*="display: flex"]:not(:first-child) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    justify-content: left !important;
    width: 100% !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
    z-index: 1000;
  }

  /* 隐藏输入框 */
  #timeK,
  #dayK {
    display: none !important;
  }

  /* AI 分析框 */
  #TKanaDiv {
    position: static !important;
    width: 100% !important;
    height: 688px !important;
    /* 扣除顶部按钮区的高度 */
    margin: 10px auto !important;
    padding: 10px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-y: auto !important;
    /* padding-bottom: 25px !important; */
  }

  #DKanaDiv {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    /* 扣除顶部按钮区的高度 */
    margin: 10px auto !important;
    padding: 10px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-y: auto !important;
    padding-bottom: 25px !important;
  }

  #TKcontent {
    height: 570px !important;
    overflow-y: auto !important;
  }

  #DKcontent {
    height: auto !important;
    overflow-y: auto !important;
  }

  #TKform {
    position: fixed !important;
    /* bottom: 30 !important; */
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    border-top: 1px solid #ddd !important;
    z-index: 2000 !important;
  }

  #TKrequest {
    flex: 1 !important;
    min-height: 40px !important;
    max-height: 150px !important;
    font-size: 14px !important;
    border: 2px solid #59ac77 !important;
    border-radius: 8px !important;
    margin-right: 8px !important;
    padding: 6px !important;
    line-height: 1.4 !important;
    resize: none !important;
    overflow-y: auto !important;
  }

  #TKanaBtn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background-color: #6fe6fc !important;
    border: none !important;
  }

  .user-bubble,
  .ai-reply {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .userAvatar {
    width: 36px !important;
    height: 36px !important;
  }

  .timestamp {
    font-size: 10px !important;
    text-align: center !important;
  }

  #AdditionalChoiceDiv {
    position: fixed !important;
    left: 0px !important;
    bottom: 0px !important;
    width: 100% !important;
    height: auto !important;
    z-index: 3000 !important;
    background-color: #ffffff;
  }

  #DailyKSVG {
    margin-left: 10px !important;
    width: 38px !important;
    height: 38px !important;
    cursor: pointer !important;
    /* margin-top: -5px; */
  }

  /* 信息栏顶部按钮栏适配 */
  #infoTabBar {
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 6px 0 !important;
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
    z-index: 1500 !important;
    border-bottom: 1px solid #ddd !important;
  }

  .infoTab {
    flex: 1 !important;
    font-size: 14px !important;
    padding: 8px 0 !important;
    text-align: center !important;
  }

  .infoTab.active {
    border-bottom: 2px solid #3d90d7 !important;
  }

  /* 信息栏整体自适应 */
  #InfoContainer {
    background-color: #ffffff;
    /* left: 1100px; */
    margin-left: 40px;
    position: static !important;
    width: 100% !important;
    height: 754px !important;
    margin: 10px 0 !important;
    border-radius: 8px !important;
  }

  #changeType {
    display: none !important;
  }
}
