* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 微软雅黑;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}

body {
  margin: 0;
  padding: 0;
}

.container{
  width: 100%;
  height: 100vh;

  transform: scale(1) !important;
}

header{
  display: flex;
  width: 1400px;
  margin: 0 auto;
  padding: 15px 0;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

header .logoBox{
  display: flex;
  justify-content: flex-start;
}

header .logoBox img{object-fit: none;}

header .logoBox .logoText{margin-top: 10px;margin-left: 50px;}

header .userBox{display: flex;}

header .userBox .user{display: flex;align-items: center;}

header .userBox .user img{object-fit: none;}

header .userBox .user .userText{
  margin-left: 10px;
  color: #1851b9;
}

header .userBox .backBtn{
  background: url("../img/back.png") center center no-repeat;
  background-size: contain;
  width: 140px;
  height: 40px;
  display: block;
  margin-left: 20px;
  transition: all 0.3s ease;
}

header .userBox .backBtn:hover {
  opacity: 0.8;
  transform: translateX(-5px);
}

header .caidan{
  display: none;
}

.container .main{

}

.container .main .mainLeft{
  width: 25%;
  padding: 2%;
  position: relative;
  transition: left 0.3s ease;
}

.container .main .mainRight{
  width: 800px;
  background: #eafcf2;
  border-radius: 19px;
  position: relative;
}

.main .title{
  font-size: 16px;
  color: rgb(0, 1, 1);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.ywsj{
  width: 100%;
  height: 37%;
  padding: 5% 0;
  margin-bottom: 10px;
}

.ywsj .swiper-slide{
  display: flex;
  flex-wrap: wrap;
}

.ywsj .swiper-slide .yw{
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ywsj .swiper-slide .ywzw{
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.ywsj .swiper-slide .wd{
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ywsj .swiper-slide .yw.active img{
  box-shadow: 0 0 15px rgba(24,50,185,0.7);
  border: 2px solid rgba(24, 81, 185, 0.3);
  box-sizing: border-box;
}

.ywsj .swiper-slide .wd.active img{
  box-shadow: 0 0 15px rgba(24,50,185,0.7);
  border: 2px solid rgba(24, 81, 185, 0.3);
  box-sizing: border-box;
}

.ywsj .swiper-slide .yw.active p{
  font-weight: bold;
}

.ywsj .swiper-slide .wd.active p{
  font-weight: bold;
}

.ywsj .swiper-slide .yw:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.ywsj .swiper-slide .wd:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.ywsj .swiper-slide .yw img{
  border-radius: 25px;
}

.ywsj .swiper-slide .wd img{
  border-radius: 25px;
}

.ywsj .swiper-slide .yw p{margin-top: 8px;text-align: center;}
.ywsj .swiper-slide .wd p{margin-top: 8px;text-align: center;}

.mainLeft .swiper-button-next{
  background: url("../img/tor.png") center center no-repeat;
  top: 25%;
  right: -1.7%;
}

.mainLeft .swiper-button-prev{
  background: url("../img/tol.png") center center no-repeat;
  top: 25%;
  left: -1.7%;
}

.swiper-button-next:after, .swiper-button-prev:after{
  font-size: 0;
}

.container .szyg{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 8%;
  margin-bottom: 8%;
  min-height: 22.2%;
  align-content: center;
}

.container .szyg .sz{
  width: 48%;
  cursor: pointer;
  margin-bottom: 3%;
  transition: all 0.3s ease;
  position: relative;
}

.container .szyg .sz:hover {
  transform: scale(1.05);
}

.container .szyg .sz.active {
  transform: scale(1.05);
}

.container .szyg .sz.active img {
  box-shadow: 0 0 15px rgba(24, 81, 185, 0.6),
  inset 0 0 15px rgba(2, 61, 171, 0.3);
  border: 2px solid rgba(24, 81, 185, 0.3);
  box-sizing: border-box;
}

.container .szyg .sz img{
  width: 100%;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.container .lsdh{
  margin-top: 5%;
  overflow-y: auto;
  max-height: 21.5%;
  overflow-x: hidden;
}

/* 自定义滚动条样式 */
.container .lsdh::-webkit-scrollbar {
  width: 4px;
}

.container .lsdh::-webkit-scrollbar-track {
  background: transparent;
}

.container .lsdh::-webkit-scrollbar-thumb {
  background: rgba(24, 81, 185, 0.3);
  border-radius: 2px;
}

.container .lsdh::-webkit-scrollbar-thumb:hover {
  background: rgba(24, 81, 185, 0.5);
}

.container .lsdh li{
  font-size: 16px;
  padding: 1.9% 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin-right: 5px;
}

.container .lsdh li.active{
  background-color: #d6e9fa;
  padding-left: 5px;
}

.container .lsdh li.active p{
  color: #406d9e;
}

.container .lsdh li p{
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.container .lsdh li:hover {
  color: #1851b9;
  transform: translateX(5px) !important;
}

.container .lsdh li:before{
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgb(0,122,255);
  margin-right: 5px;
}

.container .main .mainRight .mainBox{
  width: 100%;
  height: 100%;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.container .main .mainRight .inpBox{
  width: 99.4%;
  height: auto;
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1% 8.8% 2% 10%;
  background-color: #eafcf2;
  border-radius: 10px;
}

.container .main .mainRight .inpBox .input{
  display: flex;
  width: 100%;
  border: 1px solid #008755;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(24, 81, 185, 0.2) 0px 0px 8px;
  background-color: #fff;
  flex-wrap: wrap;
}

.container .main .mainRight .inpBox .sendBox{
  display: flex;
  justify-content: space-between;
  width: 98%;
  align-items: flex-end;
  margin: 0 auto;
}

.container .main .mainRight .inpBox .sendBox .sendLeft{
  width: 20%;
  margin-bottom: 3px;
}

.container .main .mainRight .inpBox .sendBox .yuyin,
.container .main .mainRight .inpBox .sendBox .send{
  width: 40px;
  height: 40px;
  float: left;
  /* margin: 1% 1%; */
}
.container .main .mainRight .inpBox .yuyin{
  background: url("../img/yy.png") no-repeat;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: contain;
  margin-left: 6% !important;
}
.container .main .mainRight .inpBox .xinjian{
  display: none;
}
.container .main .mainRight .inpBox .upFile{
  background: url("../img/sc.png") no-repeat;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: contain;
  width: 40px;
  height: 40px;
  float: left;
  margin-left: 5%;
}

.container .main .mainRight .inpBox .yuyin:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.container .main .mainRight .inpBox .upFile:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.container .main .mainRight .inpBox .send{
  background: url("../img/fs.png") center center no-repeat;
  width: 35px !important;
  height: 36px !important;
  background-size: contain;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.container .main .mainRight .inpBox .send:hover {
  filter: brightness(1.2);
}

.container .main .mainRight .inpBox input{
  width: 83%;
  height: 100%;
  font-size: 16px;
  border: unset;
  outline: unset;
}

.container .main .mainRight .inpBox textarea{
  width: 100%;
  height: 100%;
  font-size: 14px;
  border: unset;
  outline: unset;
  margin: 1.5% 2% 0 2%;
  min-height: 38px;
  max-height: 38px;
  overflow-y: auto;
  resize: none;
}

.container .main .mainRight .inpBox textarea::placeholder{
  color: #adadad;
  font-size: 15px;
}

.container .modeBox{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 1% 0 3% 0;
  position: relative;
}

.container .modeBox .modeLeft{
  display: flex;
  padding: 1% 2%;
  background: #e2edf9;
  border-radius: 20px 20px 20px 0;
  align-items: center;
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.container .modeBox .modeLeft p{
  font-size: 14px;
  margin-left: 8px;
}

.container .modeBox .modeLeft p span{
  color: rgb(0,122,255);
}

.container .modeBox .modeLeft p b{
  color: rgb(0,122,255);
  font-weight: normal;
}

.container .modeBox .modeRight{
  display: flex;
  margin-left: auto;
  gap: 5px;
}

.container .modeBox .modeRight .mode{
  cursor: pointer;
  transition: all 0.3s ease;
}

.container .modeBox .modeRight .mode01{
  width: 95px;
}

.container .modeBox .modeRight .mode03{
  width: 136px;
}

.container .modeBox .modeRight .mode img{
  width: 100%;
  object-fit: contain;
}

.container .modeBox .modeRight .mode:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.container .mainRight .fileBox{
  display: flex;
}

.container .mainRight .fileBox .file{
  display: flex;
  padding: 0.8% 1.2% 0.8% 2%;
  background: #e2edf9;
  border-radius: 20px;
  align-items: center;
  margin-right: 1%;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.container .mainRight .fileBox .file.hide{
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

.container .mainRight .fileBox .file p{
  font-size: 14px;
  color: #999;
  margin: 0 5px;
}

.container .mainRight .fileBox .file span{
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container .mainRight .fileBox .file span:hover {
  color: #ff4d4f;
  transform: scale(1.2);
}

.container .modeBox .modeLeft.show{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Agent思考过程样式 */
.thinkBox {
  margin-top: 15px;
  /* border: 1px solid #e0e0e0; */
  border-radius: 8px;
  overflow: hidden;
  /* background-color: #f9f9f9; */
}

.thinkControl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  /* background-color: #f0f0f0; */
  /* border-bottom: 1px solid #e0e0e0; */
  cursor: pointer;
}

.thinkControl span {
  font-weight: 600;
  color: #555;
}

.thinkControl button {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.thinkControl button:hover {
  background-color: #3367d6;
}

.think-content {
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.think-content p {
  margin: 6px 0;
  word-break: break-word;
}

think .markdown-list{
  padding-left: 0;
  color: #999;
}

/* 响应内容与思考过程的布局 */
.message.ai .content .response-content {
  margin-bottom: 5px;
}

think,.think-content{
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
  display: block;
  border-left: 3px solid #66bdfd;
  padding-left: 10px;
}

think p,.think-content p{
  font-size: 14px;
  color: #999;
}

@media screen and (min-width: 2560px) {
  header {
    width: 1800px;
    padding: 20px 0;
  }

  .container .main {
    width: 1800px;
    height: 1000px;
  }

  .main .title {
    font-size: 20px;
  }

  .ywsj .swiper-slide .yw p {
    font-size: 18px;
    margin-top: 12px;
  }

  .container .lsdh li {
    font-size: 18px;
    margin: 4% 0;
  }

  .container .main .mainRight .inpBox .input {
    height: 65px;
  }

  .container .main .mainRight .inpBox .yuyin {
    width: 45px;
    height: 45px;
  }

  .container .main .mainRight .inpBox .send {
    width: 65px;
    height: 65px;
  }

  .container .main .mainRight .inpBox input {
    font-size: 18px;
  }

  .container .modeBox .modeLeft p {
    font-size: 16px;
  }
}

/* 聊天容器样式 */
.chat-container {
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  padding-bottom: 20%;
}

/* 滚动条样式 */
.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
  background: rgba(24, 185, 113, 0.5);

  border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
  background: rgba(24, 185, 56, 0.8);
}

.chat-messages {
  margin-bottom: 10px;
}

.message {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.message.ai {
  flex-direction: row;
}

.message.user {
  flex-direction: row-reverse;
}

.message .avatar {
  width: 50px;
  height: 50px;
  border-radius: 19px;
  margin: 0 10px;
}

.message.ai .avatar{
  margin: 0 20px 0 0;
}

.message.user .avatar{
  margin: 0 0px 0 20px;
}


.message .content {
  width: 83.3%;
  padding: 12px 15px;
  border-radius: 22px;
  position: relative;
  word-wrap: break-word;
}

.message.ai .content {
  min-height: 52px;
}

.message.ai .content {
  background: linear-gradient(to bottom, rgb(239, 253, 247), rgb(217, 248, 221));
  font-size: 15px;
  box-shadow: rgba(64, 185, 24, 0.2) 0 5px 10px;
}

.message.ai .content .suggestion-ul{margin-top: 10px;display: flex;flex-direction: column;align-items: flex-start;}

.message.ai .content .suggestion-li{
  background: linear-gradient(to right, #3874fb, #56a8f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
  /* padding: 5px 8px; */
  border-radius: 4px;
  /* margin: 3px 0; */
  transition: all 0.3s ease;
  font-size: 15px;
}

.message.ai .content .suggestion-li:hover{
  background: linear-gradient(to right, #29a4e3, #cdd523);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 1px rgba(73, 133, 255, 0.2);
  transform: scale(1.02);
}

.message.user .content {
  background: #008755;
  color: #fff;
  width: auto;
  max-width: 83.3%;
}

.message.ai .content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #cdf2dc;
}

.message.user .content::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 13px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #008755;
}

.chat-suggestions {
  text-align: center;
  margin-top: 20px;
}

.chat-suggestions p {
  color: #666;
  margin-bottom: 10px;
}

.suggestion-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.suggestion-btn {
  padding: 5px 15px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: rgb(226,237,249);
  color: #1851b9;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: rgba(24,80,185,0.2) 0 5px 10px;
  font-size: 16px;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-btn:hover {
  background: linear-gradient(to right, rgb(96,132,245), rgb(135,164,252));;
  color: #fff;
}

/* 思考动画 */
.thinking {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thinking-text {
  color: #333;
}

.thinking-dots {
  display: inline-flex;
  gap: 6px;
  padding: 0 5px;
}

.thinking-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: thinking 1s infinite;
}

.thinking-dots span:nth-child(1) {
  background: #1851b9;
  animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
  background: #3874fb;
  animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
  background: #69a1ff;
  animation-delay: 0.4s;
}

@keyframes thinking {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-8px); opacity: 1; }
}

/* 打字机效果 */
.typing {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #1851b9;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #1851b9 }
}

/* 建议内容样式 */
.suggestion-text {
  color: #949eb3;
  margin: 10px 0 0 0;
  font-size: 13px;
}

.disclaimer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 10px 0;
  padding-top: 15px;
  padding-bottom: 0;
  border-top: 1px solid rgba(24, 81, 185, 0.1);

  display: none !important;
}

.disclaimer-line span {
  color: #326de5;
  font-size: 12px;
}

.disclaimer-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.disclaimer-right img {
  width: 16px;
  height: 16px;
}

.disclaimer-right span {
  color: #1851b9;
}

.response-content {
  margin: 5px 0;
  font-size: 14px;
  line-height: 24px;
}

.data-source {
  margin: 35px 0 10px 0;
  color: #295ac5;
  font-size: 14px;
}

.data-source p{
  color:#295ac5;
}

.sources-content {
  color: #666;
  font-size: 14px;
}

.sources-content p {
  margin: 0px 0;
  line-height: 1.6;
  color: #949eb3;
}

.data-source .source-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.data-source .source-header p {
  margin: 0;
}
.toggle-source {
  padding: 2px 10px;
  background: none;
  border: 1px solid #b9d8f4;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  color: #3985cb;
}
.toggle-source:hover {
  background: #f8fcff;
}

.message.ai .content h1{
  font-size: 18px;
}

.thinkControl{
  display:flex;
  align-items: baseline;
  margin-bottom: 10px;
  justify-content: flex-start;
}

.thinkControl span{
  color: #1851b9;
  font-size: 16px;
}

.thinkControl button{
  margin-left:10px;
  padding: 1px 9px;
  border-radius:10px;
  border: 1px solid #999;
  /* color: #999; */
  cursor: pointer;
  font-size: 12px;
  outline: none;
}

.thinkBox,.thinkBox context{
  font-size: 15px;
  line-height: 26px;
  margin-top: 10px;
  color: #757575;
}

.thinkBox,.thinkBox data{
  font-size: 15px;
  line-height: 26px;
  margin-top: 10px;
  color: #757575;
}

.suggestion-li {
  font-size: 14px;
  padding: 4px 0;
  color: #3874fb;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Markdown 样式 */
.response-content h1,
.response-content h2,
.response-content h3,
.response-content h4,
.response-content h5,
.response-content h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: normal;
  color: #090909;
}

.response-content h1 {
  font-size: 1.5em;
  border-bottom: 1px solid #eaecef;
  padding-bottom: 0.3em;
}

.response-content h2 {
  font-size: 1.4em;
  border-bottom: 1px solid #eaecef;
  padding-bottom: 0.3em;
}

.response-content h3 {
  font-size: 1.3em;
}

.response-content h4 {
  font-size: 1.2em;
}

.response-content h5 {
  font-size: 1.1em;
}

.response-content h6 {
  font-size: 1em;
}

.response-content p {
  margin-top: 0;
  /* margin-bottom: 1em; */
  line-height: 1.6;
}

.response-content ul,
.response-content ol {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 2em;
}

.response-content ul li,
.response-content ol li {
  margin-bottom: 0.5em;
}

.response-content blockquote {
  margin: 0 0 1em;
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #a4d2ff;
}

.response-content blockquote p{
  color: #6b6b6b;
  font-size: 13px;
}

.response-content pre.code-block {
  margin-top: 0;
  margin-bottom: 1em;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 6px;
}

.response-content code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 16px;
  /* background-color: rgba(27,31,35,0.05); */
  border-radius: 3px;
  width: 100%;
  display: block;
  white-space: pre-wrap;
}

.response-content pre.code-block code {
  padding: 0;
  margin: 0;
  font-size: 100%;
  word-break: normal;
  white-space: pre;
  background: transparent;
  border: 0;
}

.response-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1em;
}

.response-content table th,
.response-content table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.response-content table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.response-content table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.response-content img {
  max-width: 100%;
  box-sizing: content-box;
  background-color: #fff;
}

.response-content a {
  color: #0366d6;
  text-decoration: none;
}

.response-content a:hover {
  text-decoration: underline;
}

.response-content hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}

.titileBox{
  width: 95%;
  margin: 0 auto;
  display: flex;
  border-bottom: 1px solid #eaecef;
  justify-content: space-between;

  display: none !important;
}

.titileBox .title{
  padding: 15px 0;
  font-size: 18px;
  width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  background: transparent;
  outline: none;
  cursor: default;
}

.titileBox .titleCtrl{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 15px 0;
  font-size: 14px;
  gap: 10px;
}

.titileBox .titleCtrl *{
  color: #69a1ff;
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.titileBox .titleCtrl *:hover{
  filter: brightness(1.2);
}

.titileBox .titleCtrl * img{
  width: 18px;
  margin-right: 3px;
}

/* 语音按钮的样式 */
.yuyin {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 录音中的样式 */
.yuyin.recording {
  animation: pulse 1.5s infinite;
  border: 2px solid #ff3b30;
  border-radius: 50%;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* 代码块复制按钮 */
.copy-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.8);
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  opacity: 0;
  transition: opacity 0.3s;
}

.copy-btn:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 表格增强样式 */
.markdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
  max-width: 100%;
  border: 1px solid #ddd;
}

.markdown-thead {
  background-color: #f5f5f5;
  font-weight: bold;
}

.markdown-th, .markdown-td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
  min-width: 100px;
  white-space: normal;
  word-break: break-word;
}

.markdown-th {
  background-color: #f0f0f0;
  font-weight: bold;
  position: sticky;
  top: 0;
}

.markdown-table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.markdown-table tr:hover {
  background-color: #f1f1f1;
}

/* 强制表格水平滚动，防止宽表格破坏布局 */
.response-content {
  position: relative;
  overflow: hidden;
}

.response-content .markdown-table {
  max-width: 100%;
  overflow-x: auto;
}

/* 表格内容过长时的样式 */
.markdown-table td p {
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

/* 确保表格可以在小屏幕上水平滚动 */
@media screen and (max-width: 768px) {
  .markdown-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* 文件上传样式 */
.fileBox .file.uploading {
  position: relative;
  overflow: hidden;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 0.9; }
  100% { opacity: 0.7; }
}

.fileBox .file {
  position: relative;
  transition: all 0.3s ease;
}

.fileBox .file.hide {
  transform: translateY(-10px);
  opacity: 0 !important;
}

/* Mermaid图表样式 */
.mermaid-wrapper {
  margin: 15px 0;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow-x: auto;
}

.mermaid {
  font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
  text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1400px) {
  .container {
    transform-origin: top center;
  }

  header {
    width: 100%;
    padding: 15px 0;
  }

  .container .main {
    width: 100%;
    margin: 0;
  }

  .container{
    height: auto;
  }
}


/* 确保图表在移动设备上自适应 */
@media screen and (max-width: 768px) {
  .mermaid-wrapper {
    max-width: 100%;
    padding: 10px;
  }
  header{
    width: 100%;
    justify-content: end;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    padding-top: 0;
    height: 11vh;
    flex-wrap: wrap;
    row-gap: 3px;
  }
  header .logoBox img{
    width: 85%;
    object-fit: contain;
  }
  header .logoBox .logoText{
    margin-left: 3vw;
    display: none;
  }
  header .logoBox .logoText img{
    width: 100%;
    object-fit: contain;
  }
  header .userBox .user .userText{
    font-size: 3vw;
  }
  header .userBox .backBtn{
    width: 22vw;
    height: 3.8vh;
  }
  header .logoBox{
    justify-content: center;
    width: 83%;
  }
  .container .main{
    width: 100%;
    height: 89vh;
    position: relative;
  }
  .container .main .mainLeft {
    position: absolute;
    width: 100%;
    background: #fff;
    z-index: 1;
    left: -100%;
    box-shadow: unset;
    padding: 3%;
    height: 89vh;
    transition: left 0.3s ease;
  }
  .container .main .mainLeft{
    background: url("../img/phbg.png") bottom left no-repeat;
    background-size: cover;
  }
  .container .main .mainRight{
    width: 100%;
    border-radius: 0;
    height: 89vh;
    background: url("../img/phbg.png") bottom left no-repeat;
    background-size: cover;
  }
  .container .main{
    background: unset;
  }
  .container .main .mainRight .inpBox{
    padding: 0;
    border-radius: 0 0 10px 10px;
    width: 97%;
    margin: 0 auto;
    left: 1.5%;
    bottom: 1.5%;
  }
  .container .main .mainRight .inpBox .input{
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0 0 10px 10px;
    background: rgba(255,255,255,0);
  }
  .message.ai .content{
    padding: 3%;
    font-size: 17px;
    line-height: 25px;
  }
  .chat-container{
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 2% !important;
  }
  .message.ai .avatar{
    width: 10vw;
    height: 10vw;
    margin-right: 10px;
    border-radius: 5px;
  }
  .message .avatar{
    width: 10vw;
    height: 10vw;
    margin-right: 10px;
    border-radius: 5px;
  }
  .message .content{
    width: 100%;
    padding: 3%;
  }
  .container .modeBox .modeRight .mode{
    width: 90%;
  }
  .container .main .mainRight .mainBox{
    height: 70%;
    border-radius: 0;
  }
  .ywsj{
    width: 80%;
    padding: 2% 0;
  }
  .container .szyg{
    margin: 2% auto;
    width: 95%;
  }
  .container .szyg .sz{
    margin-bottom: 2%;
    height: 9.1vh;
    width: 49%;
  }
  .mainLeft .swiper-button-next{
    right: 0;
  }
  .mainLeft .swiper-button-prev{
    left: 0;
  }
  .container .modeBox .modeLeft p{
    font-size: 3vw;
    line-height: 2vh;
  }
  .container .modeBox .modeLeft{
    width: 100%;
    border-radius: 10px 10px 0 0;
  }
  header .caidan img{
    width: 4.1vw;
    object-fit: contain;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
    /* filter: brightness(9.5); */
    margin-bottom: 1vh;
  }
  header .caidan{
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 100%;
    writing-mode: vertical-lr;
    width: 13%;
    gap: 0px;
    background: url("../img/phbtn.png") center center no-repeat;
    background-size: contain;
    justify-content: flex-end;
    /* border-radius: 5px; */
    margin: 2% 0% 2% 4%;
  }
  header .caidan span{
    font-size: 3.7vw;
    color: #fff;
    letter-spacing: 5px;
  }

  .container .modeBox{
    margin-bottom: 0;
    height: auto;
    display: flex;
    align-items: flex-end;
  }
  .message.user .content::before{
    right: -7px;
    top: 14px;
  }
  .titileBox{
    flex-wrap: wrap;
  }
  .titileBox .title{
    width: 100%;
    padding: 1vh 0;
  }
  .titileBox .titleCtrl{
    padding-bottom: 1vh;
    padding-top:0
  }
  .container .lsdh {
    margin-top: 1%;
    max-height: 25%;
  }
  .container .main .mainRight .inpBox .sendBox .sendLeft{
    display: flex;
    width: 40%;
    align-items: center;
  }
  .suggestion-btn{
    max-width: unset;
  }
  .container .main .mainRight .inpBox textarea{
    font-size: 3.8vw;
    background-color: rgba(255,255,255,0);
  }
  .disclaimer-right{
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
  }
  .container .szyg .sz img{
    width: 100%;
    height: 86%;
    object-fit: cover;
    display: none;
  }
  .container .szyg .sz01{
    background: url("../img/yg01p.png") center center no-repeat;
  }
  .container .szyg .sz02{
    background: url("../img/yg02p.png") center center no-repeat;
  }
  .container .szyg .sz03{
    background: url("../img/yg03p.png") center center no-repeat;
  }
  .container .szyg .sz04{
    background: url("../img/yg04p.png") center center no-repeat;
  }
  .container .szyg .sz{
    background-size: contain;
  }

  .main .title{
    font-size: 5vw;
  }
  .container .szyg .sz.active{
    transform: scale(1);
  }
  .container .main .mainRight .inpBox .yuyin{
    display: none;
  }
  .container .main .mainRight .inpBox .xinjian {
    display: block;
    background: url(../img/xj.png) no-repeat;
    width: 25vw;
    height: 30px;
    background-size: contain;
  }
  .container .main .mainRight .inpBox .sendBox{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    margin-bottom: 3%;
    margin-top: 1%;
  }
  .container .modeBox .modeRight{
    display: none;
  }
  .disclaimer-line{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .container .szyg .sz.active img {
    box-shadow: unset;
    border: 2px solid rgba(24, 81, 185, 0.3);
    box-sizing: border-box;
  }
  .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: -3px;
  }
  .titileBox{
    width: 95%;
    margin: 0 auto;
    display: flex;
    border-bottom: 1px solid #ffffff;
    box-shadow: 0px 20px 10px rgba(0, 0, 0, 0.02);
    justify-content: space-between;
  }
  .container .lsdh li{
    padding: 1.9% 0 1.9% 5%;
  }
  .ywsj .swiper-slide img{
    width: 45%;
  }
}

/* 功能按钮组样式 */
.function-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: flex-start;

  display: none !important;
}

.function-action-btn {
  background: #f0f2f5;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #333;
}

.function-action-btn:hover {
  background: #e4e6e9;
}

.function-action-btn span{
  color: #326de5;
  font-size: 12px;
}

.function-action-btn img {
  width: 16px;
  height: 16px;
}

.think .markdown-list{
  color: #999;
  padding-left: 0;
}

.think .markdown-list li{
  color: #999;
}

.think-container{
  border-left: 3px solid #9cc2fa;
  padding-left: 10px;
}

.think-container *,.think-container{
  color: #999 !important;
}

.container .modeBox{
  display: none !important;
}