/* 
 * 小红书页面样式表
 * 包含小红书内容展示相关的样式
 */

/* 页面标题 */
.page-title {
  text-align: center;
  padding: 120px 0 60px;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.page-title p {
  color: var(--text-gray);
  font-size: 1.2rem;
}

/* 小红书个人信息 */
.xhs-profile {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.xhs-avatar {
  margin-right: 2rem;
}

.xhs-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

.xhs-info {
  flex: 1;
}

.xhs-name {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.xhs-bio {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.xhs-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.xhs-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  background-color: #ff2442;
  color: white;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.xhs-link i {
  margin-right: 0.5rem;
}

.xhs-link:hover {
  background-color: #e61e3c;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 内容分类 */
.xhs-categories {
  margin-bottom: 3rem;
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-full);
  background-color: transparent;
  border: 1px solid var(--gray-color);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.9rem;
}

.category-btn:hover {
  background-color: var(--light-color);
}

.category-btn.active {
  background-color: #ff2442;
  border-color: #ff2442;
  color: white;
}

/* 笔记展示 */
.xhs-notes {
  padding-bottom: 3rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.note-card {
  background-color: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.note-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.note-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.note-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.note-card:hover .note-image img {
  transform: scale(1.05);
}

.note-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.note-card:hover .note-overlay {
  opacity: 1;
}

.note-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: #ff2442;
  font-size: 1.25rem;
  transition: all var(--transition-normal);
}

.note-link:hover {
  background-color: white;
  color: #ff2442;
  transform: scale(1.1);
}

.note-content {
  padding: 1.5rem;
}

.note-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text-dark);
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card:hover .note-title {
  color: #ff2442;
}

.note-excerpt {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-meta {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.note-likes,
.note-comments {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.note-likes i,
.note-comments i {
  color: #ff2442;
  margin-right: 0.25rem;
}

.note-date {
  margin-left: auto;
}

/* 加载更多按钮 */
.load-more {
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
}

.load-more-btn {
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-md);
  background-color: white;
  border: 1px solid var(--gray-color);
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.load-more-btn i {
  margin-left: 0.5rem;
  transition: transform var(--transition-normal);
}

.load-more-btn:hover {
  background-color: #ff2442;
  border-color: #ff2442;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.load-more-btn:hover i {
  transform: rotate(180deg);
}

/* 笔记分类标签颜色 */
.note-card.travel .note-link {
  color: var(--secondary-color);
}

.note-card.food .note-link {
  color: var(--accent-color);
}

.note-card.lifestyle .note-link {
  color: #9b59b6;
}

.note-card.photography .note-link {
  color: #3498db;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
  .xhs-profile {
    padding: 1.5rem;
  }

  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .xhs-profile {
    flex-direction: column;
    text-align: center;
  }

  .xhs-avatar {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }

  .xhs-stats {
    justify-content: center;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }
}

/* 过滤动画 */
.note-card {
  transition: all var(--transition-normal);
}

.note-card.hide {
  opacity: 0;
  transform: scale(0.8);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}