/* 页面主要内容样式 */
.heritage-main {
    max-width: 1200px;
    margin: calc(var(--header-height) + var(--nav-height) + 30px) auto 50px;
    padding: 0 15px;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 18px;
}

/* 分类导航样式 */
.category-nav {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.category-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-nav li {
    position: relative;
}

.category-nav a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.category-nav li.active a {
    color: var(--primary-color);
}

.category-nav li.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* 非遗项目网格样式 */
.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 非遗项目卡片样式 */
.heritage-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.heritage-item:hover {
    transform: translateY(-5px);
}

.heritage-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.heritage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.heritage-item:hover .heritage-image img {
    transform: scale(1.1);
}

.heritage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.heritage-item:hover .heritage-overlay {
    transform: translateY(0);
}

.heritage-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.heritage-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

.heritage-info {
    padding: 20px;
}

.heritage-info h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.heritage-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--secondary-color);
    font-weight: bold;
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination a.next {
    padding: 0 15px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .page-title h2 {
        font-size: 28px;
    }

    .page-title p {
        font-size: 16px;
    }

    .category-nav ul {
        gap: 10px;
    }

    .category-nav a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .heritage-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }
} 