/* ==========================================================
   留言板样式（统一浮动卡材质）
   ========================================================== */

.comments-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- 输入卡 ---------- */
.comment-editor-card {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.1), inset 0 0 24px rgba(255, 255, 255, 0.35);
  padding: 18px 20px;
  margin-bottom: 22px;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.ce-textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  color: #34495e;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}
.ce-textarea:focus {
  border-color: #42b983;
}
.ce-reply-textarea {
  min-height: 56px;
}
.ce-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.ce-tip {
  margin-right: auto;
  font-size: 12px;
  color: #42b983;
}
.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

/* ---------- 留言列表 ---------- */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comment-empty {
  text-align: center;
  color: #a0aab5;
  padding: 40px 0;
  font-size: 14px;
}

.comment-item {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.1);
  padding: 16px 18px;
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #42b983, #1fc9e7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-username {
  font-size: 14px;
  font-weight: 600;
  color: #34495e;
}
.comment-time {
  font-size: 12px;
  color: #a0aab5;
  margin-left: auto;
}
.comment-region {
  font-size: 11px;
  color: #a0aab5;
  background: rgba(66, 185, 131, 0.08);
  padding: 1px 8px;
  border-radius: 999px;
}
.comment-content {
  font-size: 14px;
  color: #57606a;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.comment-action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #7b888e;
  padding: 2px 4px;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.comment-action:hover {
  color: #42b983;
}
.comment-like {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.comment-like .like-heart,
.comment-like .like-count {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* ---------- 回复 ---------- */
.comment-replies {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(66, 185, 131, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-reply {
  background: rgba(66, 185, 131, 0.04);
  border-color: rgba(66, 185, 131, 0.15);
  padding: 12px 14px;
}
.comment-reply-editor {
  margin-top: 10px;
}

/* ---------- 加载更多 ---------- */
.comment-more {
  text-align: center;
  margin-top: 18px;
}
