/* ------------------------------------------------------------------
 * Fluid 主题 — Typecho 原生评论样式
 * 与 Fluid 的配色变量保持一致，自动适配深色模式
 * ------------------------------------------------------------------ */

.fluid-comments {
  margin-top: 2rem;
}

.fluid-comments .comments-title {
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--post-heading-color);
  border-bottom: 1px dashed var(--line-color);
}

.fluid-comments ol.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fluid-comments .comment-body {
  position: relative;
  margin: 1rem 0;
  padding: .9rem 1rem;
  background: var(--button-hover-bg-color);
  border-left: 3px solid var(--line-color);
  border-radius: .375rem;
}

.fluid-comments .comment-body.comment-by-author {
  border-left-color: var(--post-link-color);
}

.fluid-comments .comment-children {
  margin-left: 1.5rem;
}

.fluid-comments .comment-author {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.fluid-comments .comment-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.fluid-comments .comment-author .fn {
  font-style: normal;
  font-weight: 600;
  color: var(--post-heading-color);
}

.fluid-comments .comment-meta {
  margin: .25rem 0 .5rem;
  font-size: .8rem;
  color: var(--sec-text-color);
}

.fluid-comments .comment-meta a {
  color: var(--sec-text-color);
  text-decoration: none;
}

.fluid-comments .comment-content {
  color: var(--post-text-color);
  line-height: 1.75;
  word-break: break-word;
}

.fluid-comments .comment-content p {
  margin: 0 0 .5rem;
}

.fluid-comments .comment-content p:last-child {
  margin-bottom: 0;
}

.fluid-comments .comment-reply {
  margin-top: .4rem;
  font-size: .85rem;
}

.fluid-comments .comment-reply a {
  color: var(--post-link-color);
  text-decoration: none;
}

.fluid-comments .comment-reply a:hover {
  color: var(--link-hover-color);
}

.fluid-comments .comment-awaiting-moderation {
  color: #e6a23c;
  font-style: normal;
}

/* ---------- 评论表单 ---------- */

.fluid-comments .respond {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-color);
}

.fluid-comments #response,
.fluid-comments .comment-reply-title {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--post-heading-color);
}

.fluid-comments .comment-form-field {
  margin-bottom: .9rem;
}

.fluid-comments .comment-form-field label {
  display: block;
  margin-bottom: .3rem;
  font-size: .9rem;
  color: var(--sec-text-color);
}

.fluid-comments .comment-form-field label.required::after {
  content: ' *';
  color: #e74c3c;
}

.fluid-comments .comment-form-field input.text,
.fluid-comments .comment-form-field textarea.textarea {
  box-sizing: border-box;
  width: 100%;
  padding: .55rem .75rem;
  font-size: .95rem;
  color: var(--post-text-color);
  background: var(--board-bg-color);
  border: 1px solid var(--line-color);
  border-radius: .375rem;
  outline: none;
  transition: border-color .2s;
}

.fluid-comments .comment-form-field input.text:focus,
.fluid-comments .comment-form-field textarea.textarea:focus {
  border-color: var(--post-link-color);
}

.fluid-comments .comment-form-field textarea.textarea {
  min-height: 120px;
  font-family: inherit;
  resize: vertical;
}

.fluid-comments button.submit,
.fluid-comments .form-submit .submit {
  padding: .5rem 1.4rem;
  font-size: .95rem;
  color: #fff;
  background: var(--navbar-bg-color);
  border: none;
  border-radius: .375rem;
  cursor: pointer;
  transition: opacity .2s;
}

.fluid-comments button.submit:hover,
.fluid-comments .form-submit .submit:hover {
  opacity: .85;
}

.fluid-comments .comment-login-tip,
.fluid-comments .comment-closed {
  font-size: .9rem;
  color: var(--sec-text-color);
}

.fluid-comments .comment-pagination {
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 767px) {
  .fluid-comments .comment-children {
    margin-left: .75rem;
  }
}
