/* 收藏页面样式 */
.favorites-section {
  padding: 2rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.favorites-section h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}
.favorites-section p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.fav-card {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 600px;
}

.fav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fav-card-img {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 1rem;
}

.fav-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-card-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.fav-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.fav-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.fav-card-title {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-card-remove {
  background: none;
  border: none;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.fav-card-remove:hover {
  background-color: #f0f0f0;
  color: #ff4d4f;
}

.fav-card-meta {
  margin: 0 0 0.5rem 1rem;
  font-size: 0.85rem;
  color: #666;
}

.fav-card-link {
  display: inline-block;
  margin-left: 1rem;
  font-size: 0.85rem;
  color: var(--c-palace);
  text-decoration: none;
  transition: color 0.2s;
}

.fav-card-link:hover {
  color: var(--c-palace-dark);
  text-decoration: underline;
}

.fav-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}

.fav-empty span {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .fav-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .fav-card-img {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .fav-card-content {
    width: 100%;
  }
  
  .fav-card-header {
    width: 100%;
  }
}
