/* 论坛互动体验：点赞、收藏、感谢、评论 */
.itzjj-likeButton.is-active,
.itzjj-favoriteButton.is-active,
.itzjj-thankButton.is-active,
.itzjj-unlikeButton.is-active {
  color: #1677ff !important;
}

.CommentEditorV2-inputWrap:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.08);
}

.CommentEditorV2-singleButton:not([disabled]) {
  cursor: pointer;
  opacity: 1;
}

.CommentEditorV2-singleButton[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.CommentItemV2.is-local-comment {
  animation: forumCommentFadeIn 0.25s ease-out;
}


.forum-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 999999;
  transform: translateX(-50%) translateY(10px);
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}

.forum-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes forumCommentFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .forum-toast {
    bottom: 78px;
    font-size: 13px;
  }

  .CommentEditorV2-singleButton {
    min-width: 64px;
  }
}

/* 修复：评论框提交按钮始终可见，不再依赖原站 active 状态，避免用户输入后看不到发布按钮 */
.CommentsV2-footer.CommentEditorV2--normal {
  position: relative;
  padding-bottom: 62px !important;
}

.CommentsV2-footer.CommentEditorV2--normal .CommentEditorV2-inputWrap {
  padding-bottom: 0;
}

.CommentsV2-footer.CommentEditorV2--normal .CommentEditorV2-singleButton {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute !important;
  right: 20px !important;
  bottom: 14px !important;
  min-width: 78px;
  height: 36px !important;
  padding: 0 18px !important;
  border-radius: 4px !important;
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 20;
  font-size: 14px !important;
}

.CommentsV2-footer.CommentEditorV2--normal .CommentEditorV2-singleButton:not([disabled]) {
  background: #1677ff !important;
  border-color: #1677ff !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.22);
}

.CommentsV2-footer.CommentEditorV2--normal .CommentEditorV2-singleButton[disabled] {
  background: #d7dce6 !important;
  border-color: #d7dce6 !important;
  color: #fff !important;
}

.CommentsV2-footer.CommentEditorV2--normal::after {
  content: none !important;
}

@media (max-width: 768px) {
  .CommentsV2-footer.CommentEditorV2--normal {
    padding-bottom: 72px !important;
  }

  .CommentsV2-footer.CommentEditorV2--normal .CommentEditorV2-singleButton {
    right: 14px !important;
    bottom: 18px !important;
    min-width: 76px;
  }

}
