/**
 * 页面样式: 我的点赞
 * 路由: /user/likes/
 * 提取自: src/pages/user/likes.html.j2
 * 提取日期: 2026-01-10
 */

.likes-shell {
  max-width: 56.25rem; /* 900px */
  margin: 0 auto;
  padding: 1rem;
}

.likes-header {
  background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-600) 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 0.875rem;
  margin-bottom: 1.25rem;
}

.likes-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.625rem; /* 26px */
  font-weight: 700;
}

.likes-header p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.likes-card {
  background: var(--white);
  border-radius: 0.875rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
  margin-bottom: 1rem;
}


.likes-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s;
}

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

.likes-item:hover {
  background: var(--gray-50);
}

.likes-item__thumb {
  width: 7.5rem; /* 120px */
  height: 5.625rem; /* 90px */
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--gray-200);
  flex-shrink: 0;
}

.likes-item__content {
  flex: 1;
  min-width: 0;
}

.likes-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.likes-item__title a {
  color: inherit;
  text-decoration: none;
}

.likes-item__title a:hover {
  color: var(--purple-800);
}

.likes-item__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.likes-item__summary {
  font-size: 0.875rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.likes-item__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-600) 100%);
  color: var(--white);
  border: 1px solid var(--purple-800);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-800) 100%);
}

.btn-outline {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
}

.btn-outline:hover {
  background: var(--gray-50);
}

.likes-loading {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.likes-loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 48rem) {
  .likes-shell {
    padding: 0.75rem;
  }

  .likes-header {
    padding: 1.125rem;
  }

  .likes-header h2 {
    font-size: 1.375rem; /* 22px */
  }

  .likes-item {
    flex-direction: column;
  }

  .likes-item__thumb {
    width: 100%;
    height: 10rem; /* 160px */
  }

  .likes-empty-cta {
    flex-direction: column;
  }
}
