/* 评论区域样式-- */
.comments-area {
  background-color: var(--light-color);
  border-radius: 12px;
  padding: 0rem;
}
.comments-area .comments-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
}
.comments-area .comments-title i {
  margin-right: 10px;
  color: var(--secondary-color);
}
.comment-list {
  list-style: none;
  margin-bottom: 1rem;
}
.comment-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}
.comment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.comment-wrapper {
  display: flex;
  gap: 15px;
}
.comment-avatar {
  flex-shrink: 0;
}
.comment-avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
}
.comment-content {
  flex: 1;
}
.comment-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.comment-author .fn {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.comment-meta {
  font-size: 0.85rem;
  color: var(--text-light);
}
.comment-meta time {
  margin-right: 10px;
}
.comment-text {
  line-height: 1.6;
  margin-bottom: 15px;
}
.comment-text p {
  margin-bottom: 15px;
}
.comment-text p:last-child {
  margin-bottom: 0;
}
.comment-text strong {
  font-weight: 700;
}
.comment-text em {
  font-style: italic;
}
.comment-text code {
  background-color: var(--light-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.comment-text a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
}
.comment-text a:hover {
  color: var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
}
.comment-text blockquote {
  margin: 15px 0;
  padding: 15px 20px;
  border-left: 4px solid var(--secondary-color);
  background-color: var(--light-color);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-light);
}
.comment-text blockquote p {
  margin: 0;
  padding: 0;
}
.comment-text h1,
.comment-text h2,
.comment-text h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}
.comment-text h1 {
  font-size: 1.5rem;
}
.comment-text h2 {
  font-size: 1.3rem;
}
.comment-text h3 {
  font-size: 1.1rem;
}
.comment-text ul,
.comment-text ol {
  margin: 15px 0;
  padding-left: 30px;
}
.comment-text ul {
  list-style-type: disc;
}
.comment-text ol {
  list-style-type: decimal;
}
.comment-text li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.comment-reply {
  font-size: 0.9rem;
}
.comment-reply a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.comment-reply a:hover {
  text-decoration: underline;
}
/* 以下是针对li.comment结构的样式 */
li.comment {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
li.comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.comment-body {
  /* 评论内容容器 */
}
.comment-body .comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.comment-body .comment-author .img-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.comment-body .comment-author .img-box .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.5rem;
}
.comment-body .comment-author .fn {
  font-weight: bold;
  color: var(--primary-color);
}
.comment-body .comment-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.comment-body .comment-meta a {
  color: var(--text-light);
  text-decoration: none;
}
.comment-body .comment-meta a:hover {
  color: var(--primary-color);
}
.comment-body .comment-content {
  margin-bottom: 1rem;
  line-height: 1.6;
  background-color: var(--light-color-secondary);
  padding: 1rem;
  border-radius: 8px;
}
.comment-body .comment-content p {
  margin-bottom: 1rem;
}
.comment-body .comment-content p:last-child {
  margin-bottom: 0;
}
/* Markdown渲染的样式 */
.comment-body .comment-content h1,
.comment-body .comment-content h2,
.comment-body .comment-content h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}
.comment-body .comment-content h1 {
  font-size: 1.5rem;
}
.comment-body .comment-content h2 {
  font-size: 1.3rem;
}
.comment-body .comment-content h3 {
  font-size: 1.1rem;
}
.comment-body .comment-content blockquote {
  margin: 15px 0;
  padding: 15px 20px;
  border-left: 4px solid var(--secondary-color);
  background-color: var(--light-color);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-light);
}
.comment-body .comment-content blockquote p {
  margin: 0;
  padding: 0;
}
.comment-body .comment-content ul,
.comment-body .comment-content ol {
  margin: 15px 0;
  padding-left: 30px;
}
.comment-body .comment-content ul {
  list-style-type: disc;
}
.comment-body .comment-content ol {
  list-style-type: decimal;
}
.comment-body .comment-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.comment-body .comment-content strong {
  font-weight: bold;
}
.comment-body .comment-content em {
  font-style: italic;
}
.comment-body .comment-content code {
  background-color: var(--light-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.comment-body .comment-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
}
.comment-body .comment-content a:hover {
  color: var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
}
.comment-body .reply {
  text-align: right;
  font-size: 0.9rem;
}
.comment-body .reply a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.comment-body .reply a:hover {
  text-decoration: underline;
}
/* 评论表单样式 */
.comment-respond {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.comment-respond .comment-reply-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.comment-form {
  display: grid;
  gap: 15px;
}
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 15px;
}
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--dark-color);
}
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}
.comment-form-comment label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--dark-color);
}
.comment-form-comment textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  min-height: 120px;
  transition: var(--transition);
}
.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}
.form-submit {
  margin-top: 10px;
}
.submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
/* 无评论消息 */
.no-comments {
  text-align: center;
  padding: 30px;
  color: var(--text-light);
  font-style: italic;
}
/* 无评论占位符 */
.no-comments-placeholder {
  text-align: center;
  padding: 2rem;
  margin: 2rem 0;
  background-color: var(--light-color-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}
.literary-message {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-medium);
}
.literary-message i {
  font-size: 1.2em;
  color: var(--secondary-color);
  opacity: 0.7;
}
.literary-message p {
  margin: 0.8em 0;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-medium);
}
/* 导航分页 */
.navigation {
  margin: 20px 0;
  text-align: center;
}
.navigation .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.navigation .nav-links a {
  padding: 8px 15px;
  background: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}
.navigation .nav-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
/* 子评论样式 */
.children {
  list-style: none;
  padding-left: 40px;
  margin-top: 20px;
}
.children .comment-wrapper {
  background-color: var(--light-color);
  padding: 15px;
  border-radius: 8px;
}
.children .comment-item {
  border-bottom: none;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
/* 响应式设计 */
@media (max-width: 767px) {
  .comment-wrapper {
    flex-direction: column;
  }
  .children {
    padding-left: 20px;
  }
  .navigation .nav-links {
    flex-direction: column;
    gap: 5px;
  }
  .navigation .nav-links a {
    width: 100%;
  }
}
@media (min-width: 768px) {
  .comments-area {
    padding: 0rem;
  }
}
