/* ========================================
   ForestWhisper 评论样式
   包含所有评论相关的样式和深色模式适配
======================================== */

/* 评论区域容器样式 */
.post-comment {
  border-top: 2px solid var(--border-color);
  width: 100%;
  max-width: 100%;
}

.comment-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark-main-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* WordPress默认评论样式 */
/* 评论区域样式 - 统一版本 */
.comments-section {
  margin: 40px 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* 确保评论区域与文章内容宽度一致 */
  margin-left: 0;
  margin-right: 0;
  /* 清除任何可能影响宽度的浮动 */
  clear: both;
  overflow: visible;
}

/* 评论标题 */
.comments-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.comments-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-title svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #333;
}

.comment-count {
  background: var(--main-color);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 评论列表 */
/* 评论列表样式 - 参考 old/valine.less 复刻 */
.comments-list {
  width: 100%;
  margin-bottom: 0;
  padding: 0;
}

.comment-item {
  position: relative;
  display: block;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item:after {
  clear: both;
  display: block;
  content: "";
}

.comment-avatar {
  float: left;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border: 1px solid var(--border-color, #e0e0e0);
  padding: 2px;
  border-radius: 7px;
  align-self: flex-start;
  box-sizing: border-box;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.comment-item:hover .comment-avatar {
  border-color: var(--main-color);
}

.comment-item:hover .comment-avatar img {
  transform: scale(1.05);
}

@media screen and (max-width: 720px) {
  .comment-avatar {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    padding: 1.5px;
  }

  .comment-reply .comment-avatar {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    padding: 1.5px;
  }

  .comment-header-wrapper {
    min-height: 28px;
    height: 28px;
    gap: 0.05em;
  }

  .comment-header-row {
    min-height: auto;
    height: auto;
    line-height: 1.2;
  }

  .comment-reply {
    margin-left: 1em;
    padding: 0.75em 1em;
  }
}

.comment-content {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 40px;
  margin-top: 0;
  padding-top: 0;
}

/* 评论头部容器 - 参考 .v .vlist .vcard .vh */
.comment-header-wrapper {
  overflow: visible;
  padding-bottom: 0;
  border-bottom: 1px dashed #f5f5f5;
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 40px;
  height: 40px;
  justify-content: center;
  align-items: flex-start;
}

.comment-item:last-child .comment-header-wrapper {
  border-bottom: none;
}

.comment-header-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 20px;
  height: 20px;
  flex-shrink: 0;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  gap: 0;
}

.comment-header-top {
  justify-content: space-between;
  gap: 0;
}

.comment-header-bottom {
  justify-content: space-between;
}

.comment-time {
  color: #b3b3b3;
  font-size: 0.75em;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  height: 20px;
  display: inline-flex;
  align-items: center;
}

.author-name {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875em;
  cursor: pointer;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  margin-right: 0;
  margin-left: 0;
  vertical-align: middle;
  height: 20px;
}

.author-name:hover {
  color: var(--dark-main-color);
}

.author-badge {
  display: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0.2em 0.5em;
  border-radius: 0.2em;
  background: #ededed;
  color: #b3b1b1;
  font-size: 0.75em;
}

/* 管理员徽章样式 */
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  vertical-align: middle;
  cursor: help;
  position: relative;
  flex-shrink: 0;
}

.admin-badge svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* 回复列表中的徽章样式 */
.comment-reply .admin-badge {
  margin-left: 0;
  margin-right: 0;
  vertical-align: middle;
}

.comment-reply .admin-badge svg {
  width: 14px;
  height: 14px;
}

.admin-badge svg .admin-badge-star {
  fill: #ffd700 !important;
}

.admin-badge svg .admin-badge-check {
  fill: #ffffff !important;
}

.admin-badge:hover svg {
  transform: scale(1.1);
}

.admin-badge:hover svg .admin-badge-star {
  fill: #ffa500 !important;
}

.admin-badge:hover svg .admin-badge-check {
  fill: #ffffff !important;
}

/* 悬浮提示 */
.admin-badge::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 5px;
  padding: 4px 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.admin-badge:hover::after {
  opacity: 1;
}

.comment-meta {
  position: relative;
  line-height: 1.2;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0;
  height: 20px;
  min-height: 20px;
  gap: 0;
}

.comment-reply-link {
  color: var(--main-color) !important;
  font-size: 0.8125em;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.comment-reply-link,
.comment-reply-link * {
  color: var(--main-color) !important;
}

.comment-reply-link svg {
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  fill: var(--main-color) !important;
  color: var(--main-color) !important;
}

.comment-reply-link svg path {
  fill: var(--main-color) !important;
}

.comment-item:hover .comment-reply-link {
  opacity: 1;
}

.comment-reply-link:hover {
  color: var(--dark-main-color) !important;
}

.comment-reply-link:hover,
.comment-reply-link:hover * {
  color: var(--dark-main-color) !important;
}

.comment-reply-link:hover svg,
.comment-reply-link:hover svg path {
  fill: var(--dark-main-color) !important;
}

.comment-floor {
  color: #b3b3b3;
  font-size: 0.75em;
  line-height: 1.2;
  margin-left: auto;
  height: 20px;
  display: inline-flex;
  align-items: center;
}

.comment-text {
  position: relative;
  margin-bottom: 0.75em;
  padding-top: 0.625em;
  color: #4a4a4a;
  text-align: justify;
  word-wrap: break-word;
  font-size: 0.875em;
  line-height: 2;
  word-break: break-all;
}

.comment-text p {
  margin: 0 0 0.5em 0;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-text img,
.comment-text iframe,
.comment-text frame {
  max-width: 100%;
  border: none;
}

/* 回复样式 - 参考 .v .vlist .vcard .vquote */
.comment-reply {
  margin-top: 1em;
  margin-left: 2em;
  padding: 1em 1.5em;
  background-color: #f8f9fa;
  border-left: none;
  border-radius: 8px;
  color: #666;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.comment-reply .comment-avatar {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border: 1px solid var(--border-color, #d0d0d0);
  padding: 2px;
  border-radius: 7px;
  flex-shrink: 0;
}

.comment-reply .comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transition: transform 0.3s ease;
  display: block;
}

.comment-reply:hover .comment-avatar {
  border-color: var(--main-color);
}

.comment-reply:hover .comment-avatar img {
  transform: scale(1.05);
}

.comment-reply .comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comment-reply .comment-header-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0;
  border-bottom: 1px dashed #f5f5f5;
  margin-bottom: 0.5em;
  min-height: auto;
  height: auto;
}

.comment-reply .comment-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: auto;
  width: 100%;
}

.comment-reply .comment-header-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
}

.comment-reply .comment-header-bottom {
  display: none;
}

/* 回复的时间样式 */
.comment-reply .comment-header-top .comment-time {
  display: inline-block;
  color: #b3b3b3;
  font-size: 0.75em;
  line-height: 1;
  margin-left: auto;
}

.comment-reply .author-name {
  margin-right: 0;
  margin-left: 0;
}

.comment-reply .comment-meta {
  display: none;
}

.comment-reply .comment-floor {
  display: none;
}

.reply-to {
  display: none;
}

/* 旧版评论表单样式已删除，使用下方精简版本 */

#vcomments .vmeta {
  margin-top: 10px;
}

#vcomments .vat {
  color: var(--main-color);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

#vcomments .vat:hover {
  color: var(--dark-main-color);
}

/* 评论区域样式 - 参考 old/valine.less .v 复刻 */
.comments-section {
  text-align: left;
  font-size: 16px;
}

.comments-section * {
  box-sizing: border-box;
  color: #555;
  line-height: 2;
  transition: all 0.3s ease;
}

/* 评论表单样式 - 参考 old/valine.less 复刻 */
.comment-respond {
  margin-top: 30px;
  padding: 0;
  background: transparent;
  border: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 16px;
}

/* 回复标题样式 */
#reply-title,
.comment-respond h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-main-color);
  margin: 0 0 1em 0;
  padding: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* 如果取消回复链接不在logged-in-as内，使用旧样式 */
.comment-respond h3 #cancel-comment-reply-link,
#reply-title #cancel-comment-reply-link {
  margin-left: 0.5em;
  font-size: 0.875em;
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
  flex-shrink: 0;
}

.comment-respond h3 #cancel-comment-reply-link:hover,
#reply-title #cancel-comment-reply-link:hover {
  color: var(--main-color);
  text-decoration: none;
  background-color: #f0f0f0;
  border-color: var(--main-color);
}

.comment-respond * {
  box-sizing: border-box;
  color: #555;
  line-height: 2;
  transition: all 0.3s ease;
}

.comment-form {
  display: block;
  padding: 0;
}

/* 评论表单整体容器 - 参考 .v .vwrap */
.comment-form-content {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
  background: transparent;
}

.comment-form-content textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 10px;
  max-width: 100%;
  outline: none;
  border: none;
  background: transparent;
  font-size: 0.875em;
  font-family: inherit;
  resize: none;
  transition: all 0.25s ease;
  line-height: 2;
  box-sizing: border-box;
}

.comment-form-content textarea:focus {
  outline: none;
  border-bottom-color: var(--main-color);
}

.comment-form-content textarea::placeholder {
  color: #999;
  font-style: normal;
}

/* 用户信息和提交按钮区域 - 参考 .v .vwrap .vcontrol */
.comment-fields {
  background-color: #f7f7f7;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  font-size: 16px;
  flex: 1;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
}

.comment-form-author .input-icon,
.comment-form-email .input-icon,
.comment-form-url .input-icon {
  position: absolute;
  left: 5px;
  width: 16px;
  height: 16px;
  color: #999;
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}

.comment-form-author .input-label,
.comment-form-email .input-label,
.comment-form-url .input-label {
  position: absolute;
  left: 26px;
  color: #999;
  font-size: 0.775em;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.comment-form-author input:focus ~ .input-label,
.comment-form-author input:not(:placeholder-shown) ~ .input-label,
.comment-form-author input[value]:not([value=""]) ~ .input-label,
.comment-form-email input:focus ~ .input-label,
.comment-form-email input:not(:placeholder-shown) ~ .input-label,
.comment-form-email input[value]:not([value=""]) ~ .input-label,
.comment-form-url input:focus ~ .input-label,
.comment-form-url input:not(:placeholder-shown) ~ .input-label,
.comment-form-url input[value]:not([value=""]) ~ .input-label {
  opacity: 0;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 10px 5px;
  padding-left: 26px;
  max-width: 100%;
  outline: none;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: 0.775em;
  line-height: 2;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  border-bottom-color: var(--main-color);
}

.comment-form-author input::placeholder,
.comment-form-email input::placeholder,
.comment-form-url input::placeholder {
  color: transparent;
  opacity: 0;
}

.comment-form-author input:focus::placeholder,
.comment-form-email input:focus::placeholder,
.comment-form-url input:focus::placeholder {
  color: transparent;
  opacity: 0;
}

/* 记住信息复选框 */
.comment-form-cookies {
  display: none !important;
}

/* 已登录用户提示信息 */
.logged-in-as {
  margin-bottom: 1em;
  padding: 0.75em 1em;
  background-color: #f8f9fa;
  border-left: 3px solid var(--main-color);
  border-radius: 4px;
  font-size: 0.875em;
  line-height: 1.6;
  color: #666;
  /* 默认状态：所有内容在左侧，左对齐（不回复时） */
  display: block;
}

.logged-in-as > * {
  display: inline;
}

/* 回复状态：使用flex布局，左侧内容 + 右侧取消按钮 */
.logged-in-as:has(#cancel-comment-reply-link),
.logged-in-as.replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

/* 左侧内容区域（回复信息） */
.logged-in-as .reply-info {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
}

/* 回复状态下，左侧内容区域 */
.logged-in-as:has(#cancel-comment-reply-link)
  > span:first-child:not(#cancel-comment-reply-link),
.logged-in-as.replying > span:first-child:not(#cancel-comment-reply-link) {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
}

.logged-in-as a {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0 0.3em;
}

.logged-in-as a:hover {
  color: var(--dark-main-color);
  text-decoration: underline;
}

.logged-in-as .required-field-message {
  display: inline-block;
  margin-left: 1em;
  color: #999;
  font-size: 0.9em;
  white-space: nowrap;
}

/* 取消回复按钮 */
.logged-in-as #cancel-comment-reply-link {
  font-size: 0.875em;
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  margin-left: auto;
}

.logged-in-as #cancel-comment-reply-link:hover {
  color: var(--main-color);
  text-decoration: none;
  background-color: #f0f0f0;
  border-color: var(--main-color);
}

.logged-in-as .required {
  color: #e74c3c;
  font-weight: bold;
  margin: 0 2px;
}

/* 提交按钮 - 参考 .v .vwrap .vcontrol .col.text-right */
.comment-form-submit {
  font-size: 16px;
  padding: 0;
  margin: 0;
  margin-left: auto;
  text-align: right;
  box-sizing: border-box;
  flex-shrink: 0;
  width: 95px;
}

.comment-submit-btn {
  display: inline-block;
  width: 95px;
  margin-bottom: 0;
  padding: 0.5em 0;
  outline: none;
  border: 1px solid var(--main-color);
  background: var(--main-color);
  color: #fff;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  font-weight: 400;
  font-size: 0.875em;
  line-height: 2em;
  cursor: pointer;
  transition-duration: 0.4s;
  user-select: none;
  box-sizing: border-box;
  height: auto;
  border-radius: 0;
}

.comment-submit-btn:active,
.comment-submit-btn:hover {
  border-color: var(--dark-main-color);
  background-color: var(--dark-main-color);
  color: #fff;
}

.comment-submit-btn svg {
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.comment-submit-btn:hover svg {
  transform: translateX(2px);
}

/* AJAX提交按钮状态 */
.comment-submit-btn[data-loading="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.comment-submit-btn[data-loading="true"] .btn-text,
.comment-submit-btn[data-loading="true"] .btn-icon {
  display: none;
}

.comment-submit-btn[data-loading="true"] .btn-loading {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 评论高亮效果 */
.comment-highlight {
  animation: commentHighlight 2s ease-in-out;
  border-color: var(--main-color) !important;
  background: rgba(121, 174, 156, 0.1) !important;
}

@keyframes commentHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(121, 174, 156, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(121, 174, 156, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(121, 174, 156, 0);
  }
}

/* 评论已关闭 */
.comments-closed {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.comments-closed p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* 评论导航 - 使用主页分页样式 */
.comments-navigation {
  margin: 36px 0 10px;
  text-align: center;
}

.comments-navigation .paginator-numeric {
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .comments-section {
    margin: 30px 0;
  }

  .comment-respond {
    margin-top: 20px;
  }

  .comment-form-content textarea {
    min-height: 120px;
    padding: 12px;
  }

  .comment-form-actions {
    padding: 6px 12px;
    font-size: 11px;
  }

  .comment-fields {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
  }

  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    width: 100%;
  }

  .comment-form-author input,
  .comment-form-email input,
  .comment-form-url input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .comment-submit-btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .comment-item {
    padding: 12px;
    margin-bottom: 12px;
    /* 移动端确保宽度一致 */
    width: 100% !important;
    max-width: 100% !important;
  }

  .comment-avatar img {
    width: 32px;
    height: 32px;
  }

  .comment-reply::before {
    left: -10px;
    border-right-width: 6px;
  }

  .comment-actions {
    display: flex !important;
    opacity: 1 !important;
  }
}

@media (max-width: 576px) {
  .comments-section {
    margin: 20px 0;
  }

  .comment-respond {
    padding: 12px;
  }

  .comment-form-content textarea {
    min-height: 70px;
    padding: 10px;
  }

  .comment-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .comment-item {
    padding: 10px;
    gap: 10px;
    /* 小屏幕确保宽度一致 */
    width: 100% !important;
    max-width: 100% !important;
  }

  .comment-avatar img {
    width: 28px;
    height: 28px;
  }

  .comment-actions {
    display: flex !important;
    opacity: 1 !important;
    width: 100%;
    justify-content: flex-start;
  }

  .comment-reply::before {
    left: -8px;
    border-right-width: 5px;
  }

  /* 移动端评论头部自动换行 */
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 响应式 - 参考 valine.less */
@media screen and (max-width: 520px) {
  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    width: 33.33%;
  }

  .comment-form-submit {
    width: 100%;
    margin-top: 10px;
  }

  .comment-submit-btn {
    width: 100%;
  }
}

/* ========================================
   深色模式适配
======================================== */

[data-theme="dark"] #comments {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
}

[data-theme="dark"] .comments-title {
  color: var(--text-primary);
  border-bottom-color: var(--border-primary);
}

[data-theme="dark"] .comment-item,
[data-theme="dark"] .comment-main,
[data-theme="dark"] .comment-reply {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .comment-item:hover {
  background: var(--odd-color);
}

[data-theme="dark"] .comment-author {
  color: var(--main-color);
}

[data-theme="dark"] .comment-meta {
  color: var(--text-secondary);
}

[data-theme="dark"] .comment-content {
  color: var(--text-primary);
}

[data-theme="dark"] .comment-reply-btn,
[data-theme="dark"] .comment-like-btn {
  color: var(--text-secondary);
  background: var(--odd-color);
  border-color: var(--border-primary);
}

[data-theme="dark"] .comment-reply-btn:hover,
[data-theme="dark"] .comment-like-btn:hover {
  background: var(--main-color);
  color: #ffffff;
}

/* 评论表单 */
[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form input[type="email"],
[data-theme="dark"] .comment-form input[type="url"],
[data-theme="dark"] .comment-form textarea {
  background: var(--bg-primary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .comment-form input:focus,
[data-theme="dark"] .comment-form textarea:focus {
  border-color: var(--main-color);
  background: var(--bg-secondary);
}

[data-theme="dark"] .comment-form input::placeholder,
[data-theme="dark"] .comment-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

[data-theme="dark"] .comment-submit-btn {
  background: #238636;
  border-color: #238636;
}

[data-theme="dark"] .comment-submit-btn:hover {
  background: #2ea043;
}

