/* ========= 评论区容器 ========= */
.comment-container {
/*  max-width: 640px;*/
  margin: 0 auto;
  padding: 0 12px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  color: #333;
}

/* 标题 */
.comment-container h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px; margin-top: 0;
}

/* ========= 发表表单 ========= */
.comment-form {
  background: #f5f7fa;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.comment-form textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
  color: #333;
}
.comment-form textarea:focus {
  outline: none;
  border-color: #409eff;
}
.comment-form .submit-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  font-size: 15px;
  color: #fff;
  background: #409eff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.comment-form .submit-btn:active {
  background: #66b1ff;
}

/* ========= 评论列表 ========= */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-item {
  background: #f5f7fa;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  padding: 12px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: #909399;
}
.comment-header .username {
  font-weight: 500;
  color: #333;
}
.comment-content {
  font-size: 15px;
  word-break: break-all;
  white-space: pre-wrap;
      text-align: left; 
}

/* ========= 小屏微调 ========= */
@media (max-width: 480px) {
  .comment-container {
    padding: 10px;
  }
  .comment-container h2 {
    font-size: 16px;
  }
  .comment-form .submit-btn,
  .comment-content {
    font-size: 14px;
  }
}