/* 小红书页面专用样式 */

/* 小红书英雄区 */
.xiaohongshu-hero {
    height: 400px;
    background-color: #fef0f1;
    background-image: linear-gradient(135deg, #fef0f1 0%, #fff5f5 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.xiaohongshu-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/xiaohongshu-pattern.png');
    background-size: 200px;
    opacity: 0.05;
}

.xiaohongshu-hero-content {
    position: relative;
    z-index: 2;
    color: var(--primary-color);
    max-width: 800px;
    padding: var(--spacing-md);
}

.xiaohongshu-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.xiaohongshu-logo svg {
    margin-right: var(--spacing-xs);
}

.xiaohongshu-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #FF2442;
}

.xiaohongshu-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--text-color);
}

/* 小红书介绍区 */
.xiaohongshu-intro {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #FF2442;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.intro-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FF2442;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.intro-image {
    flex: 1;
    max-width: 400px;
}

.profile-preview {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* 过滤器样式 */
.xiaohongshu-filter {
    padding: var(--spacing-md) 0;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-button {
    padding: 8px 20px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.filter-button:hover {
    background-color: #e6e6e6;
}

.filter-button.active {
    background-color: #FF2442;
    color: white;
}

/* 笔记网格 */
.xiaohongshu-grid {
    padding: var(--spacing-lg) 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.note-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.note-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.note-card:hover .note-image img {
    transform: scale(1.05);
}

.note-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    display: flex;
    justify-content: flex-end;
}

.note-likes {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.note-likes svg {
    margin-right: 4px;
}

.note-content {
    padding: var(--spacing-sm);
}

.note-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.note-date {
    opacity: 0.6;
}

.note-link {
    color: #FF2442;
    font-weight: 500;
}

.note-link:hover {
    text-decoration: underline;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    padding: var(--spacing-md) 0 var(--spacing-xl);
}

.load-more .button {
    min-width: 200px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xiaohongshu-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .xiaohongshu-hero {
        height: 300px;
    }
    
    .xiaohongshu-hero h1 {
        font-size: 2.5rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--spacing-xs);
    }
    
    .filter-button {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .xiaohongshu-hero {
        height: 250px;
    }
    
    .xiaohongshu-hero h1 {
        font-size: 2rem;
    }
    
    .xiaohongshu-hero p {
        font-size: 1rem;
    }
    
    .intro-text h2 {
        font-size: 1.8rem;
    }
    
    .intro-stats {
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
} 