/* 加载提示样式 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  width: 100%;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border: 3px solid rgba(103, 178, 153, 0.3);
  border-radius: 50%;
  border-top-color: #67b299;
  animation: spin 1s ease-in-out infinite;
}

.loading-text {
  color: #9fa7ba;
  font-size: 16px;
  font-weight: bold;
}

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

/* 空状态样式美化 */
.cm-nr__container {
  padding: 2rem 0;
}

.cm-nr__container .media {
  margin-bottom: 1rem;
}

.cm-nr__container .text {
  color: #9fa7ba;
  font-size: 16px;
  margin-bottom: 1rem;
}

.cm-nr__container .action .btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #67b299;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.cm-nr__container .action .btn:hover {
  background-color: #4d9e7f;
}

/* 书架统计信息样式 */
.favorite-stats {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(103, 178, 153, 0.1);
  border-radius: 8px;
  border-left: 4px solid #67b299;
}

.stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  background-color: #67b299;
  border-radius: 50%;
  color: white;
}

.stats-icon .icon-favorite:before {
  content: '❤';
  font-size: 20px;
}

.stats-info {
  flex: 1;
}

.stats-title {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stats-count {
  font-size: 14px;
  color: #9fa7ba;
}

.stats-count span {
  color: #67b299;
  font-weight: bold;
}

/* 收藏项样式优化 */
.favorite-section {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.favorite-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.favorite-section .item {
  background-color: #2a3446;
  border-radius: 8px;
}

.favorite-section .thumbnail {
  position: relative;
  overflow: hidden;
}

.favorite-section .thumbnail:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.favorite-section .thumb_img {
  transition: transform 0.3s;
}

.favorite-section:hover .thumb_img {
  transform: scale(1.05);
}

.favorite-section .title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #fff;
}

.favorite-time {
  display: flex;
  align-items: center;
  color: #9fa7ba;
  font-size: 12px;
}

.time-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  background: url('/static/assets/img/icon-clock.png') no-repeat center;
  background-size: contain;
}

.favorite-section .badge span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.favorite-section .badge span:hover {
  background-color: rgba(255, 107, 107, 0.2);
}

.favorite-section .action .btn {
  background-color: #67b299;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.favorite-section .action .btn:hover {
  background-color: #4d9e7f;
}
