.recommendation-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recommendation-link:hover {
  text-decoration: none;
  color: inherit;
}

.recommendation-item {
  display: flex;
  margin-bottom: 10px !important;
  padding: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: var(--bg-course);
  border: 1px solid var(--border-color);
  height: 120px;
  /* 相应调整高度以适应新的padding */
  align-items: center;
}

.recommendation-item:last-child {
  margin-bottom: 0;
}

.recommendation-item:hover {
  background-color: #e9ecef;
}

.rec-cover {
  height: 60px;
  width: 80px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  /* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.rec-cover .no-image {
  color: var(--text-white);
  font-size: 12px;
  text-align: center;
}

.rec-info {
  flex: 1;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
}

.rec-name {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px 0;
  color: var(--text-color);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-meta {
  font-size: 12px;
}

.rec-title {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  font-size: 14px;
}

.no-recommendations {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 14px;
}

.no-recommendations p {
  margin: 5px 0;
}

.refresh-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: var(--text-white);
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.refresh-btn:hover {
  background: var(--primary-color);
  opacity: 0.9;
}

.recommended-course-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: var(--text-muted);
  font-size: 16px;
  position: relative;
}

.recommended-course-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: recommended-course-spin 1s linear infinite;
}

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