/* Joe 主题评论模块美化 CSS - WorkBuddy AI - 2026-05-30 */

/* 评论区整体容器 */
.joe_comment {
  margin-top: 30px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 28px 32px;
  animation: fadeInUp 0.5s ease;
}

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

/* 评论标题 */
.joe_comment__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 评论关闭提示 */
.joe_comment__close {
  text-align: center;
  padding: 40px 20px;
  color: #909399;
  font-size: 15px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px dashed #dcdfe6;
}

/* 评论表单容器 */
.joe_comment__respond {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid #e8ecf5;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 模式切换按钮 */
.joe_comment__respond-type {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.joe_comment__respond-type .item {
  padding: 7px 18px;
  border: 1.5px solid #dcdfe6;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.joe_comment__respond-type .item.active {
  background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  border-color: #409eff;
  box-shadow: 0 3px 12px rgba(64,158,255,0.3);
}

/* 表单头部 昵称邮箱网址 */
.joe_comment__respond-form .head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.joe_comment__respond-form .head .list input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #dcdfe6;
  border-radius: 10px;
  padding: 0 16px 0 40px;
  font-size: 14px;
  color: #303133;
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.joe_comment__respond-form .head .list input:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64,158,255,0.1);
  background: #f5f9ff;
}

/* 表单主体 文本框 */
.joe_comment__respond-form .body {
  margin-bottom: 14px;
}

.joe_comment__respond-form .body .text {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid #dcdfe6;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #303133;
  background: #fff;
  resize: vertical;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
  line-height: 1.7;
}

.joe_comment__respond-form .body .text:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64,158,255,0.1);
  background: #f5f9ff;
}

/* 表单底部 表情提交 */
.joe_comment__respond-form .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.joe_comment__respond-form .foot .submit button {
  padding: 9px 28px;
  background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(64,158,255,0.3);
  letter-spacing: 1px;
}

.joe_comment__respond-form .foot .submit button:hover {
  background: linear-gradient(135deg, #66b1ff 0%, #409eff 100%);
  box-shadow: 0 6px 20px rgba(64,158,255,0.4);
  transform: translateY(-1px);
}

/* 评论列表项 */
.comment-list__item .comment-list__item-contain {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid #f0f0f5;
  transition: all 0.3s ease;
  animation: commentFadeIn 0.4s ease;
  animation-fill-mode: both;
}

@keyframes commentFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.comment-list__item .comment-list__item-contain:hover {
  border-color: #d9e8ff;
  box-shadow: 0 4px 16px rgba(64,158,255,0.08);
  transform: translateY(-1px);
}

/* 头像 */
.comment-list__item-contain .term .avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  border: 2.5px solid #e8ecf5;
  object-fit: cover;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.comment-list__item-contain:hover .term .avatar {
  border-color: #409eff;
  box-shadow: 0 3px 12px rgba(64,158,255,0.2);
  transform: scale(1.05);
}

/* 评论内容区 */
.comment-list__item-contain .term .content .user .author {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.comment-list__item-contain .term .content .user .owner {
  background: linear-gradient(135deg, #e6a23c 0%, #f56c6c 100%);
  color: #fff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-style: normal;
  font-weight: 600;
}

/* 分页 */
.joe_pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.joe_pagination li a,
.joe_pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #606266;
  background: #fff;
  border: 1.5px solid #dcdfe6;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.joe_pagination li.active a,
.joe_pagination li.active span {
  background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  border-color: #409eff;
  box-shadow: 0 3px 12px rgba(64,158,255,0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .joe_comment {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .joe_comment__respond-form .head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .comment-list__item-contain .term .avatar {
    width: 38px !important;
    height: 38px !important;
  }
  .comment-list__item-children {
    margin-left: 20px;
  }
}
