/* 非遗传承页面样式 */
.heritage-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 筛选区域样式 */
.filter-section {
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #8B0000;
    border-radius: 5px;
    font-size: 1em;
}

.search-box button {
    padding: 12px 30px;
    background: #8B0000;
    color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #CC0000;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #FFD700;
    color: #8B0000;
}

.tag.active {
    background: #8B0000;
    color: #FFD700;
}

/* 瀑布流网格样式 */
.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.heritage-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.heritage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.item-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.heritage-item:hover .item-image img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.heritage-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    color: #FFD700;
    margin-bottom: 10px;
}

.item-overlay p {
    color: #fff;
    margin-bottom: 20px;
}

.learn-more {
    padding: 8px 20px;
    background: #FFD700;
    color: #8B0000;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background: #fff;
}

.item-info {
    padding: 20px;
}

.item-info h4 {
    color: #8B0000;
    margin-bottom: 10px;
}

.item-info p {
    color: #666;
    line-height: 1.6;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more button {
    padding: 12px 40px;
    background: #8B0000;
    color: #FFD700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more button:hover {
    background: #CC0000;
    transform: translateY(-2px);
} 