/* ===== Waline 评论界面极限纵向压缩 ===== */
/* v4 - 删除顶部蓝色分割线，隐藏编辑器工具栏图标 */

/* 删除评论区顶部蓝色虚线分割条 */
#post-comment {
  border-top: none !important;
  border: none !important;
}
#post-comment::before,
#post-comment::after,
#post-comment .comment-head::before,
#post-comment .comment-head::after {
  display: none !important;
  background: none !important;
}

/* Waline 标题区分割线 */
.wl-header {
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
}
.wl-header hr,
.wl-header::after,
.comment-head hr {
  display: none !important;
}

/* 隐藏编辑器左侧工具栏所有按钮 */
.wl-editor-toolbar,
.wl-editor-toolbar *,
.vltx-icon,
.wl-editor-toolbar .wl-action,
.wl-editor-toolbar button {
  display: none !important;
}

/* 工具栏按钮布局 - 把登录/发表按钮放到预览右边 */
.wl-action {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  padding: 2px 0 !important;
}

.wl-action button,
.wl-action .wl-btn,
.wl-action .wl-login {
  display: inline-flex !important;
}

/* 全局容器 */
.wl-panel {
  padding: 2px !important;
}

/* 评论卡片 - 极限压缩 */
.wl-card {
  padding: 3px 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
}

/* 编辑器区域 - 极限压缩 */
.wl-editor {
  min-height: 24px !important;
  margin: 2px 0 !important;
}

.wl-editor textarea {
  min-height: 24px !important;
  height: 24px !important;
  padding: 2px 5px !important;
  line-height: 1.3 !important;
}

/* 评论内容 */
.wl-content {
  margin: 1px 0 !important;
  line-height: 1.3 !important;
}
.wl-content p {
  margin: 1px 0 !important;
}

/* 用户信息栏 */
.wl-meta {
  margin-bottom: 1px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.wl-nick {
  font-size: 12px !important;
}

/* 头像 */
.wl-avatar {
  width: 16px !important;
  height: 16px !important;
  margin-right: 3px !important;
}

/* 按钮操作栏 */
.wl-reaction,
.wl-operations {
  margin-top: 1px !important;
  padding: 0 !important;
}
.wl-operation {
  font-size: 12px !important;
  padding: 1px 2px !important;
}

/* 回复框 */
.wl-reply {
  margin-top: 2px !important;
  padding-left: 10px !important;
}

/* 分隔线 */
.wl-divider {
  margin: 2px 0 !important;
}

/* 评论列表 */
.wl-cards {
  margin-top: 2px !important;
}

/* 标题 */
.wl-head {
  font-size: 14px !important;
  margin-bottom: 2px !important;
}

/* 提交按钮 */
.wl-btn,
.wl-login {
  padding: 2px 10px !important;
  font-size: 12px !important;
}

/* 页码 */
.wl-pagination {
  margin-top: 2px !important;
  padding-top: 2px !important;
}

/* 个人信息面板 */
.wl-profile {
  padding: 2px !important;
}
.wl-profile-ul {
  margin: 2px 0 !important;
}

/* 隐藏不必要元素 */
.wl-sort-active {
  display: none !important;
}

/* 时间显示缩小 */
.wl-time {
  font-size: 10px !important;
}

/* 徽章缩小 */
.wl-badge {
  font-size: 9px !important;
  padding: 0 3px !important;
}

/* 评论区整体外边距压缩 */
#post-comment {
  margin-top: 5px !important;
}
#post-comment .comment-head {
  margin-bottom: 2px !important;
}

/* 表情选择器 */
.wl-action i {
  padding: 2px 4px !important;
  font-size: 12px !important;
}

/* 标签页 */
.wl-tab {
  padding: 2px 8px !important;
  font-size: 12px !important;
}

/* 输入框 */
.wl-input {
  padding: 2px 4px !important;
  font-size: 12px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wl-card {
    padding: 2px 0 !important;
  }
  .wl-avatar {
    width: 14px !important;
    height: 14px !important;
  }
  .wl-editor textarea {
    min-height: 24px !important;
    height: 24px !important;
  }
  .wl-meta, .wl-nick, .wl-operation {
    font-size: 11px !important;
  }
}