/* 评论区专用样式 - 基于 Tailwind 的设计但不引入完整框架 */

/* 基础容器样式 */
.tailwind-comments {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* 标题样式 */
.tailwind-comments .text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* 表单样式 */
.tailwind-comments .space-y-4 > * {
  margin-top: 1rem;
}
.tailwind-comments .space-y-4 > *:first-child {
  margin-top: 0;
}

/* 标签样式 */
.tailwind-comments .block {
  display: block;
}
.tailwind-comments .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.tailwind-comments .font-medium {
  font-weight: 500;
}
.tailwind-comments .text-gray-700 {
  color: #4a5568;
}
.tailwind-comments .mb-1 {
  margin-bottom: 0.25rem;
}

/* 输入框样式 */
.tailwind-comments .w-full {
  width: 100%;
  box-sizing: border-box;
}
.tailwind-comments .py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.tailwind-comments .px-3 {
  width: 100%;
}
.tailwind-comments .border {
  border-width: 1px;
}
.tailwind-comments .border-gray-300 {
  border-color: #e2e8f0;
}
.tailwind-comments .rounded-md {
  border-radius: 0.375rem;
}
.tailwind-comments .shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.tailwind-comments .focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.tailwind-comments .focus\:ring-blue-500:focus {
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px var(--tw-ring-color);
}
.tailwind-comments .focus\:border-blue-500:focus {
  border-color: #3b82f6;
}

/* 按钮样式 */
.tailwind-comments button {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-width: 1px;
  border-color: transparent;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: white;
  background-color: #2563eb;
  cursor: pointer;
}
.tailwind-comments button:hover {
  background-color: #1d4ed8;
}
.tailwind-comments button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* 评论列表样式 */
.tailwind-comments .mt-6 {
  margin-top: 1.5rem;
}
.tailwind-comments .space-y-4 > * {
  margin-top: 1rem;
}
.tailwind-comments .space-y-4 > *:first-child {
  margin-top: 0;
}

/* 单条评论样式 */
.tailwind-comments .comment {
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border-top: none;
}
.tailwind-comments .flex {
  display: flex;
}
.tailwind-comments .items-center {
  align-items: center;
}
.tailwind-comments .justify-between {
  justify-content: space-between;
}
.tailwind-comments .text-gray-900 {
  color: #111827;
}
.tailwind-comments .text-gray-500 {
  color: #6b7280;
}
.tailwind-comments .mt-2 {
  margin-top: 0.5rem;
}
.tailwind-comments .text-gray-700 {
  color: #4b5563;
}