.comment-box {
  border-radius: 10px;
  position: relative;
}

.comment-content {
  margin-bottom: 10px;
}

/* 评论模块 */

.comment-open-box {
  display: flex;
  flex-direction: row;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px 10px 0px 0px;
  background-color: #fff;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.comment-open-box:hover {
  background-color: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}


.comment-open-box .open-box-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.comment-open-box .open-box-content {
  font-size: 12px;
  color: #333;
}

.comment-box-content {
  overflow: hidden;
  height: 0;
  opacity: 0;
  display: none;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  position: relative;
}

.comment-box-content .box-content-textarea {
  width: 100%;
}

.comment-box-content .box-content-textarea textarea {
  width: calc(100% - 20px);
  height: 100px;
  resize: none;
  border-radius: 5px;
  padding: 10px;
  resize: none;
  height: 5.6em;
  overflow: hidden;
  transition: all 0.2s ease;
}

.comment-box-content .box-content-textarea textarea:focus {
  outline: none;
  height: 200px;
}

.comment-box-content .box-content-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 10px;
}


.comment-box-content .box-content-login {
  display: none;
  gap: 10px;
  /*只有一行*/
  grid-template-columns: 1fr 1fr 1fr;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  padding: 10px;
  position: absolute;
  bottom: 35px;
  width: 100%;
  background: #fff;
}

@media (max-width: 767px) {
  .comment-box-content .box-content-login {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
}

.comment-box-content .box-content-login input {
  padding: 5px 10px;
  border-radius: 5px;
  width: calc(100% - 10px);
  border-bottom: 1px solid #ccc;
  margin: 0 auto;
  margin-bottom: 10px;
  font-size: 14px;
}

.comment-box-content .box-content-login input:focus {
  outline: none;
  border-bottom: 1px solid var(--theme-back);
  transition: all 0.3s ease-in-out;
}

.comment-box-content .box-content-actions-login span {
  background: #f4f4f4;
  color: #333;
  border: none;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 12px;
  cursor: pointer;

}

.comment-box-content .box-content-actions-submit i {
  margin-right: 5px;
}

.comment-box-content .box-content-actions-submit span:last-child {
  background: var(--theme-back);
  color: #fff;
  padding: 2px 5px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.comment-box-content .box-content-actions-submit span:not(:last-child) {
  margin-right: 10px;
  background: #f4f4f4;
  color: #333;
  border: none;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.comment-box-content .box-content-actions-submit .active {
  background: #409EFF !important;
  color: #fff !important;
  transition: all 0.3s ease-in-out;
}

.comment-box-content .box-content-actions-submit .active i {
  color: #fff;
  transition: all 0.3s ease-in-out;
}

/*回复*/

.comment-reply-list .comment-item {
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
}

.comment-reply-list .comment-user {
  padding: 10px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  /* var(--redis) */
  width: 20%;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
}

@media (max-width: 767px) {
  .comment-reply-list .comment-user {
    display: none;
  }
}

.comment-reply-list .comment-user-avatar {
  width: 100%;
  display: flex;
  justify-content: center;
}

.comment-reply-list .comment-user-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.comment-reply-list .comment-user-info span {
  font-size: 10px;
  color: #333;
  padding: 2px 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 0 5px;
}

.comment-reply-list .comment-user-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.comment-reply-list .comment-user-actions span {
  font-size: 12px;
  color: #333;
  padding: 2px 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 0 5px;
  cursor: pointer;
  background-color: #ccc;
  color: #333;
  transition: all 0.3s ease-in-out;
}

.comment-reply-list .comment-user-actions span:hover {
  background: var(--theme-back);
  color: #fff;
}

.comment-reply-list .comment-user-avatar img {
  border-radius: 50%;
  max-width: 96px;
  max-height: 96px;
}

.comment-reply-list .comment-user-username {
  font-size: 14px;
  color: #333;
}

.comment-reply-list .comment-content-block {
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  width: 100%;
  display: flex;
  gap: 10px;
  flex-direction: column;
  justify-content: space-around;
}

.comment-reply-list .comment-content-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.comment-reply-list .comment-content-html {
  font-size: 14px;
}

.comment-reply-list .emoji {
  width: 50px;
  height: 50px;
}

.comment-reply-list .comment-content-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

@media (max-width: 767px) {
  .comment-reply-list .comment-content-bottom span:last-child {
    display: none;
  }
}

.comment-reply-list .comment-content-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}


.comment-reply-list .comment-content-actions-left,
.comment-reply-list .comment-content-actions-right,
.comment-reply-list .comment-content-actions-left span,
.comment-reply-list .comment-content-actions-right span {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

.comment-reply-list .comment-content-actions-left span,
.comment-reply-list .comment-content-actions-right span {
  margin: 0px 5px;

}

.comment-reply-list .comment-content-actions-right span {
  cursor: pointer;
  padding: 2px 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.comment-reply-list .comment-content-actions-right span:hover {
  background-color: var(--theme-back);
}

.comment-reply-list .comment-content-actions-right span:hover i {
  color: #fff;
  transition: all 0.3s;
}

.comment-reply-list .comment-content-user {
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media (min-width: 767px) {
  .comment-reply-list .comment-content-user {
    display: none;
  }
}

.comment-reply-list .comment-content-user img {
  border-radius: 50%;
  max-width: 25px;
  max-height: 25px;
}

.comment-reply-list .comment-content-user span {
  margin: 0 5px;
  font-size: 12px;
  color: #333;
}

/*没有评论时展示的评论列表*/

.comment-list-empty {
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
}

/*表情框*/

.comment-box .emoji-panel {
  width: 100%;
  max-width: 300px;
  min-width: 200px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  overflow: hidden;
  position: absolute;
  right: 200px;
}

@media (max-width: 767px) {
  .comment-box .emoji-panel {
    right: 0px;
  }
}



.emoji-panel .emoji-panel-header {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 14px;
}

.emoji-panel .emoji-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.emoji-panel .emoji-size-small {
  width: 24px;
  height: 24px;
}

.emoji-panel .emoji-size-normal {
  width: 50px;
  height: 50px;
}

.emoji-panel .emoji-size-large {
  width: 80px;
  height: 80px;
}

.emoji-panel .emoji-item {
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  overflow: hidden;
}


.emoji-panel .emoji-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.emoji-panel .emoji-item:hover {
  background-color: #f5f5f5;
  transform: scale(1.05);
}

.emoji-panel .emoji-panel-footer {
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-start;
  padding: 6px;
}

.emoji-panel .emoji-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  margin: 0 4px;
  padding: 4px 10px;
}

.emoji-panel .emoji-tab:hover {
  background-color: rgba(56, 88, 246, var(--opacity, 0.1));
}

.emoji-panel .emoji-tab.active {
  color: #409EFF;
}

.emoji-panel .emoji-tab img {
  width: 28px;
  height: 28px;

}