/* ========== 操作栏布局（顶部对齐） ========== */
.fav-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

/* 分类按钮区域：允许内部换行，自动占据剩余空间 */
.fav-filter-bar {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;  /* PC端靠左 */
  gap: 8px;
}

/* ========== 按钮统一样式（高度一致） ========== */
.fav-filter-btn,
.batch-download-btn {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 20px;
  line-height: 1.4;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* 分类按钮特有 */
.fav-filter-btn {
  background: #f5f6fa;
  color: #666;
  border: 1px solid #e0e4e8;
}
.fav-filter-btn:hover {
  background: #eef2ff;
  border-color: #4f8cff;
  color: #4f8cff;
}
.fav-filter-btn.active {
  background: #4f8cff;
  color: #fff;
  border-color: #4f8cff;
}

/* 批量下载按钮特有 */
.batch-download-btn {
  background-color: #4f8cff;
  color: #fff;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.batch-download-btn:hover {
  background-color: #3a6fd8;
}
.batch-download-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ========== 手机端布局 ========== */
@media (max-width: 768px) {
  .fav-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .fav-filter-bar {
    justify-content: center;    /* 手机端居中 */
  }
  .batch-download-btn {
    width: 100%;
    text-align: center;
  }
}

/* ========== 其他样式保持不变 ========== */
.fav-list-placeholder {
  min-height: 200px;
  text-align: center;
  color: #999;
}
.fav-warning {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #bbb;
}

/* 广告块 */
.ad-block {
  min-height: 90px;
  text-align: center;
  background: #ffffff;
}
.ad-block.ad-favorites-top {
  margin-bottom: 25px;
  padding: 10px;
}
.ad-block.ad-favorites-bottom {
  margin-top: 25px;
  padding: 10px;
  border-top: 1px solid #e0e0e0;
}
.ad-label {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-bottom: 8px;
}

/* 收藏卡片 */
.fav-grid-item {
  cursor: pointer;
  transition: transform 0.2s;
}
.fav-grid-item:hover {
  transform: scale(1.02);
}
.fav-grid-item .pro_title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.fav-remove-wrap {
  text-align: left;
}

/* 移除按钮 */
.fav-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.fav-remove::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #ff6b6b;
  transition: width 0.25s ease;
}
.fav-remove:hover {
  color: #ff6b6b;
}
.fav-remove:hover::after {
  width: 100%;
}
.fav-remove-icon {
  width: 14px;
  height: 14px;
  stroke: #999;
  transition: stroke 0.2s ease;
}
.fav-remove:hover .fav-remove-icon {
  stroke: #ff6b6b;
}

/* 下载限制提示条 */
.download-limit-info {
  background: #fdf6ec;
  border-left: 3px solid #e67e22;
  color: #856404;
  padding: 8px 15px;
  margin-bottom: 15px;
  font-size: 13px;
  border-radius: 4px;
}
.download-limit-info strong {
  color: #d35400;
}


/* 教程按钮样式（与其他按钮协调） */
.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;          /* 与批量下载按钮完全一致 */
  font-size: 13px;
  border-radius: 20px;
  line-height: 1.4;
  box-sizing: border-box;
  background: #f8faff;
  color: #666;
  border: 1.5px dashed #aaa;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.guide-btn:hover {
  border-color: #4f8cff;
  color: #4f8cff;
  background: #eef2ff;
}

/* 教程面板 */
.guide-panel {
  background: #f9fafb;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}
.guide-panel h4 {
  margin: 0 0 8px 0;
  color: #2764b3;
}
.guide-panel ul {
  padding-left: 20px;
  margin: 5px 0;
}