.qa-header {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f8f8fa;
}

.qa-header .ant-input {
  width: 300px;
}

/* 问题分组/排序 */
.qa-group-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

.qa-group-sort .qa-nav {
  font-size: 14px;
  flex: 1;
  border: 0;
}

.qa-group-sort .qa-sort {
  width: 100px;
  color: #999;
  margin-left: auto;
}

.qa-group-sort .qa-sort .ant-select-selection {
  border: 0;
  box-shadow: none;
}


.qa-content .item {
  padding: 20px 0;
  border-bottom: 1px solid #f8f8fa;
}


.qa-content .item .qa-q {
  font-size: 16px;
  font-weight: bold;
  display: block;
}

.qa-content .item .qa-a {
  font-size: 14px;
  margin-top: 10px;
  background: #7d7d7d0a;
  border-radius: 5px;
  padding: 8px 8px;
}

.qa-content .item .qa-a .content .time {
  font-size: 14px;
  margin-top: 10px;
  color: #8491a5;
  display: none;
}

.qa-content .item .qa-a .content.read-more-active .time {
  display: block;
}

.read-more {
  color: #09408e;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.read-more>svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}




.qa-item-actions {
  transition: 0.3s;
  /*动画初始位置 */
  bottom: -50px;
}

.qa-item-actions.sticky {
  position: sticky;
  bottom: 0;
}

.qa-item-actions .q-a-item-btns {
  /* margin-top: 5px; */
  display: flex;
  gap: 24px;
  font-size: 14px;
  justify-content: space-between;
  padding-top: 10px;
  color: #999;
  /* flex-direction: row-reverse; */
  /* background: #f8f8fa; */
}

/* 评论区 */
.comment-list .qa-item-actions .q-a-item-btns {
  margin: 0;
  padding-top: 0;
  justify-content: flex-end;
  position: relative;
}

.comment-list .qa-item-actions .q-a-item-btns .left-btns .time-text {
  position: absolute;
  left: 0;
}






.qa-item-actions.sticky>.q-a-item-btns {
  background: #fff;
  width: calc(100% + 50px);
  margin-left: -25px;
  box-shadow: 0 -1px 3px rgba(25, 27, 31, .1);
  padding: 10px 20px;
}


.qa-item-actions .q-a-item-btns>.left-btns {
  margin-top: 5px;
  display: flex;
  gap: 24px;
  /* flex-direction: row-reverse */
}


.qa-item-actions .q-a-item-btns .btn-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #999;
  cursor: pointer;
  user-select: none;
}

.qa-item-actions .q-a-item-btns .btn-item:not(.disabled):hover {
  color: #2e6ed5;
}

.qa-item-actions .q-a-item-btns .btn-item.answer {
  background: transparent;
  border: 1px solid;
  border-radius: 3px;
  color: #2e6ed5;
  cursor: pointer;
  font-size: 14px;
  padding: 0 10px;
  text-align: center;
  display: flex;
  align-items: center;
  height: 30px;
}

.qa-item-actions .q-a-item-btns .btn-item.answer:hover {
  background: oklch(from #2e6ed5 l c h/.06);
}

.qa-item-actions .q-a-item-btns .btn-item.disabled {
  opacity: 0.5;
  cursor: no-drop;
}

.q-a-item-btns-btn-item {
  color: #999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 100px;
  gap: 3px;
  padding: 0px 15px;
  user-select: none;
}

.qa-item-actions .q-a-item-btns svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.qa-item-actions .q-a-item-btns .like-btn.activation {
  color: #2e6ed5;
}

/* .qa-item-actions .q-a-item-btns .like-btn,
.qa-item-actions .q-a-item-btns .step-on-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  line-height: 20px;
  gap: 5px;
}

.qa-item-actions .q-a-item-btns .like-btn {
  background: #5295ff24;
  border-color: #5295ff24;
  color: #2e6ed5;
} */

.qa-item-actions .q-a-item-btns .step-on-btn {
  color: #999;
}

.qa-item-actions .q-a-item-btns .step-on-btn svg {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg) scale(0.8);
  /* transform: scaleY(-1); */
}

.qa-item-actions .q-a-item-btns .put-it-away>svg {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.comment .comment-input-wrap {
  display: flex;
}

.comment .comment-input-wrap .user-avatar {
  object-fit: cover;
  border-radius: 5px;
}

.comment .comment-input-wrap .comment-input {
  flex: 1;
  border-radius: 4px;
  border: 1px solid rgb(235, 236, 237);
  padding: 8px 12px;
  margin-left: 8px;
}

.comment .comment-input-wrap .comment-input textarea {
  resize: none;
  overflow: auto;
  box-shadow: none;
  border: 0;
  padding: 0;
  line-height: 24px;
  font-size: 15px;
  color: #333;
}

.comment .comment-input-wrap .comment-input:focus-within .comment-btns,
.comment .comment-input-wrap .comment-input:focus .comment-btns {
  display: flex;
}

.comment .comment-input-wrap .comment-input .comment-btns {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin: 8px 0px 0px;
  color: #999;
  user-select: none;
  border-top: 1px solid #ebeced;
  display: none;
}


.comment .comment-input-wrap .comment-input .comment-btns svg.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.comment .comment-input-wrap .comment-input .comment-btns .left-btn {
  display: flex;
  gap: 10px;
}

.comment .comment-input-wrap .comment-input .comment-btns .left-btn .btn {
  cursor: pointer;
}

.comment .comment-input-wrap .comment-input .comment-btns .left-btn .btn.disabled {
  cursor: no-drop;
  color: #d9d9d9;
}

.comment .comment-input-wrap .comment-input .comment-btns .left-btn .ant-tooltip.emoji-list {
  max-width: 405px;
  font-size: 27px;
  max-height: 200px;
  overflow: auto;
}


.comment .comment-input-wrap .comment-input .comment-btns .left-btn .ant-tooltip .ant-tooltip-inner {
  background: #fff;
}

.comment .comment-input-wrap .comment-input .comment-btns .left-btn .ant-tooltip.emoji-list .emiji:hover {
  background-color: #f8f8fa;
}

.comment .comment-input-wrap .comment-input .btn-submit[disabled] {
  color: #fff;
  background-color: #2e6ed5;
  border-color: #2e6ed5;
  opacity: 0.5;
  cursor: default;
}

.comment .comment-input-wrap .comment-input .imgs-wrap {
  display: flex;
  user-select: none;
  align-items: center;
  color: #888;
}

.comment .comment-input-wrap .comment-input .imgs-wrap .img-item {
  margin-top: 8px;
  margin-right: 8px;
  min-width: 0px;
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.comment .comment-input-wrap .comment-input .imgs-wrap .img-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.comment .comment-input-wrap .comment-input .imgs-wrap .img-item .close {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #8f9192;
  right: 0px;
  top: 0px;
  z-index: 10;
  cursor: pointer;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAPFBMVEVHcEz///////////////////////////////////////////////////////////////////////////+PybD1AAAAE3RSTlMAyhTTPm0N8+41LHvb45BcjLaisKxqVAAAAJhJREFUKM9lkUsOBCEIBRltFRzTP+5/11Z0RhtcEFO14OUBVHwG9Q68IhRmVCYw8w6+TiTN+YSMygj/RNDmzwGomUSG/8zWvt+VV5OG6dzNhcMI926NuDXDlk+jeTXCi+F978hmuTXCSzIm9L2SIJHhI1siw4fBV29u6aCb8O5HGm03Pd59ToOKD3PDpXm/aYC4n1HXkO8AD0IgDpiMJfgLAAAAAElFTkSuQmCC);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 12px 12px;
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border-radius: 50%;
}

.comment .comment-input-wrap .comment-input .imgs-wrap .img-item:hover .close {
  opacity: 0.8;
}

.sticky .comment {
  max-height: 40vh;
  overflow-x: auto;
}

.qa-item-actions>.comment {
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
}

.comment .comment-list {
  margin-top: 10px;
  border: 1px solid #ebeced;
  border-radius: 4px;
  min-height: 100px;
  background-color: #fff;
}

.comment .comment-list .comment-list {
  border: 0;
}

.comment .comment-list .comment-item {
  display: flex;
  padding: 10px 20px 20px;
}

.comment .comment-list .comment-item .comment-item {
  display: flex;
  padding: 10px 0 14px;
}

.comment .comment-list .comment-item .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.comment .comment-list .comment-item .user-avatar img {
  width: 100%;
  height: 100%;
}

.comment .comment-list .comment-item .comment-content {
  flex: 1;
}

.comment .comment-list .comment-item .comment-content .user-info {
  display: flex;
  align-items: center;
}

.comment .comment-list .comment-item .comment-content .user-info .user-name {
  font-size: 15px;
  font-weight: bold;
  color: #000;
}



.comment .comment-list .comment-item .comment-content .comment-text {
  font-size: 15px;
  line-height: 24px;
  color: #333;
  white-space: pre-line;
  font-weight: 400;
}

.comment .comment-list .comment-item .comment-content .comment-imgs {
  margin: 5px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comment .comment-list .comment-item .comment-content .comment-imgs img {
  max-width: 200px;
  height: 100px;
  border-radius: 5px;
  object-fit: cover;
  cursor: pointer;
}

/* 放大图片 */

.comment-enlarge-imgs {
  position: fixed;
  inset: 0;
  background-color: #00000073;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.comment-enlarge-imgs .action-close {
  text-align: right;
  padding: 15px;
  z-index: 1;
  display: inline-block;
  position: absolute;
  right: 0;
}

.comment-enlarge-imgs .action-close .icon-close {
  cursor: pointer;
  color: #fff;
  fill: currentColor;
}

.comment-enlarge-imgs .carousel {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.comment-enlarge-imgs .carousel .slick-slider,
.comment-enlarge-imgs .carousel .slick-slider .slick-list,
.comment-enlarge-imgs .carousel .slick-slider .slick-list .slick-track .slick-slide>div,
.comment-enlarge-imgs .carousel .slick-slider .slick-list .slick-track .slick-slide>div .carousel-item,
.comment-enlarge-imgs .carousel .slick-slider .slick-list .slick-track {
  height: 100%;
}

.comment-enlarge-imgs .carousel .slick-slider .slick-list .slick-track .slick-slide>div .carousel-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.comment-enlarge-imgs .custom-slick-arrow {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 10;
}

.comment-enlarge-imgs .slick-list img {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  object-fit: cover;
}








.qa-drawer .ant-drawer-content-wrapper {
  min-width: 800px;
}

.qa-drawer .ant-drawer-content-wrapper .ant-drawer-wrapper-body {
  overflow-y: auto;
  overflow-x: hidden;
}

.qa-drawer .ant-drawer-content-wrapper .ant-drawer-content {
  /* background-color: #f4f6f9; */
}

.qa-drawer .qa-drawer-header .qa-drawer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 12px;
  line-height: normal;
}

.qa-drawer .qa-drawer-header .qa-drawer-desc {
  font-size: 15px;
}

.qa-drawer .qa-drawer-header .qa-item-actions>.q-a-item-btns {
  padding: 0;
}

.qa-drawer .qa-drawer-header .qa-item-actions>.comment {
  margin-top: 10px;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item {
  margin-top: 10px;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .author {
  display: flex;
  align-items: center;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .author .avatar {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  background-color: #ffffff;
  height: 34px;
  border-radius: 2px;
  object-fit: cover;
  margin-right: 15px;
  aspect-ratio: 1/1;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .author .info {
  color: #373a40;
  font-size: 15px;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .author .info .tag-nickname {
  font-weight: 600;
  margin-right: 5px;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .content {
  margin-top: 10px;
  position: relative;
  /*     //根据组件内设置高度300： 内容高度大于300px才添加滚动事件 并且 内容是展开状态才添加滚动事件 */
  --max-height: 300px;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .content.read-more-active .answer-content-container {
  max-height: var(--max-height);
  overflow: hidden;
  mask-image: linear-gradient(#fff calc(100% - 110px), oklch(from #fff l c h / .15) calc(100% - 30px), transparent calc(100% - 62px));
  -webkit-mask-image: linear-gradient(#fff calc(100% - 110px), oklch(from #fff l c h / .15) calc(100% - 30px), transparent calc(100% - 62px));
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .content.read-more-active .read-more {
  --height: 30px;

  position: absolute;
  height: var(--height);
  top: calc(var(--max-height) - var(--height));
  background: #fff;
  display: block;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .content .time {
  margin-top: 10px;
  color: #8491a5;
  font-size: 13px;
}

.qa-drawer .qa-drawer-answer .qa-drawer-answer-item .content .edit-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-bottom: -10px;
  margin-top: 5px;
}





/* 提问 */
.new-qa-modal {
  z-index: 10000;
}

.new-qa-modal .ant-modal-body {
  padding-bottom: 0;
}

.new-qa-modal .new-title {
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
}

.new-qa-modal .new-title>img {
  box-sizing: border-box;
  margin: 6px 12px 0px 0px;
  min-width: 0px;
  max-width: 100%;
  background-color: rgb(255, 255, 255);
  width: 40px;
  height: 40px;
  border-radius: 3px;
  float: left;
  flex: 0 0 auto;
}

.new-qa-modal .new-title>textarea {
  resize: none;
  overflow: auto;
  box-shadow: none;
  border: 0;
  padding: 0;
  line-height: 27px;
  font-size: 17px;
  margin-top: 10px;
}

.new-qa-modal .new-qa-submit-btn[disabled] {
  color: #fff;
  background-color: #2e6ed5;
  border-color: #2e6ed5;
  opacity: 0.5;
  cursor: default;
}

.new-qa-modal .ant-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border: 0;
}

.new-qa-modal .ant-modal-footer .new-qa-category-select {
  width: 120px;
  color: #888;
}



.my-answer-btn {
  margin-top: 15px;
}


/* 分享 */
.share-tooltip .ant-tooltip-inner,
.share-tooltip .ant-tooltip-arrow:before {
  background-color: #fff;
  color: #8491a5;
  padding: 0;
}



/* 用户标签 */
.user-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px !important;
  line-height: 13px !important;
  font-weight: 400 !important;
}

.user-tags .tag-nickname {
  font-size: 15px !important;
  font-weight: bold !important;
}

.user-tags .tag-author {
  padding: 0px 2px;
  border-radius: 5px;
  background: oklch(from #999999 l c h / .06);
  color: #999999;
}

.user-tags .tag-platform {
  padding: 0px 2px;
  border-radius: 5px;
  background: oklch(from #007aff l c h / .06);
  color: #007aff;
}

.user-tags .tag-official {
  padding: 0px 2px;
  border-radius: 5px;
  background: oklch(from #d8111b l c h / .06);
  color: #d8111b;
}


.user-tags .tag-vip {
  background: url(/assets/imgs/member/month.png) center no-repeat;
  background-size: contain;
  width: 35px;
  display: inline-block;
  height: 18px;
}

.user-tags .tag-vip-puls {
  background: url(/assets/imgs/member/year.png) center no-repeat;
  background-size: contain;
  width: 35px;
  display: inline-block;
  height: 18px;
}

/* 编辑器 */

.qa-editor {
  margin-top: 20px;
}

.qa-editor>.qa-editor-btns {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #888;
  font-size: 12px;
}

.qa-editor>.qa-editor-btns>.btn-cancel {
  margin: 0 10px 0 auto;
}

.qa-editor>.qa-editor-btns>.ant-btn[disabled] {
  color: #fff;
  background-color: #2e6ed5;
  border-color: #2e6ed5;
  opacity: 0.5;
  cursor: default;
}

.quill-editor .ql-toolbar,
.qa-editor .ql-toolbar {
  border-radius: 5px 5px 0 0;
}

.quill-editor .ql-container,
.qa-editor .ql-container {
  border-radius: 0 0 5px 5px;
}

/* 编辑器内容展示边距 */
.ql-editor.desc {
  padding: 0;
}

.ql-snow .ql-editor img {
  max-width: 70% !important;
}

/* 编辑器汉化 */
.ql-snow .ql-tooltip[data-mode=link]::before {
  content: "链接地址：" !important;
}

.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
  content: "保存" !important;
}

.ql-snow .ql-tooltip a.ql-action::after {
  content: "修改" !important;
}

.ql-snow .ql-tooltip a.ql-remove::before {
  content: "删除" !important;
}

.ql-snow .ql-tooltip::before {
  content: "访问地址:" !important;
}

/* 编辑上传图片 */
.ql-editor p:has(img[src^="data:image"]) {
  position: relative;
}

.ql-editor p:has(img[src^="data:image"]):after {
  content: '上传中...';
  background: #ffffffcf;
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  font-size: 30px;
}