/* 页面头部样式 */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(rgba(196, 18, 48, 0.1), rgba(196, 18, 48, 0.05));
    border-radius: 8px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    color: #c41230;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

/* 分类标签样式 */
.heritage-categories {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    border: 2px solid #c41230;
    background: none;
    color: #c41230;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: rgba(196, 18, 48, 0.1);
}

.tab-button.active {
    background-color: #c41230;
    color: white;
}

/* 非遗项目卡片样式 */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.heritage-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.heritage-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.heritage-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.card-content .level {
    color: #c41230;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-content .description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.learn-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #c41230;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.learn-more:hover {
    background-color: #a30f26;
}

/* 地图区域样式 */
.heritage-map {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.heritage-map h2 {
    text-align: center;
    color: #c41230;
    font-size: 28px;
    margin-bottom: 30px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
}

.map-legend h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.map-legend ul {
    list-style: none;
}

.map-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.level1 { background-color: #c41230; }
.legend-dot.level2 { background-color: #f4511e; }
.legend-dot.level3 { background-color: #ff9800; }

/* 保护行动区域样式 */
.heritage-protection {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.heritage-protection h2 {
    text-align: center;
    color: #c41230;
    font-size: 28px;
    margin-bottom: 30px;
}

.protection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.protection-card {
    text-align: center;
}

.protection-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.protection-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.protection-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .protection-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
} 