/* 页面主体样式 */
.people-main {
    margin-bottom: 50px;
}

/* 页面横幅样式 */
.page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 内容区域样式 */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 分类导航样式 */
.category-nav {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.category-nav h2 {
    color: #c41230;
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #c41230;
    color: #fff;
    border-color: #c41230;
}

/* 搜索和筛选样式 */
.search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    padding: 10px 20px;
    background: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #a00f28;
}

.filter-box {
    display: flex;
    gap: 15px;
}

.filter-box select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    min-width: 150px;
}

/* 传承人列表样式 */
.people-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.people-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.people-card:hover {
    transform: translateY(-5px);
}

.people-image {
    position: relative;
    height: 200px;
}

.people-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.level-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.level-tag.national {
    background: #c41230;
}

.level-tag.provincial {
    background: #28a745;
}

.level-tag.city {
    background: #007bff;
}

.people-info {
    padding: 20px;
}

.people-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.specialty {
    color: #c41230;
    font-weight: bold;
    margin-bottom: 10px;
}

.region {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.icon-location {
    width: 16px;
    height: 16px;
    background-image: url('../images/icon-location.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.brief {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-btn {
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-btn:hover {
    background: #c41230;
    color: #fff;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination button,
.pagination .page-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button {
    background: none;
}

.pagination .page-number:hover,
.pagination button:hover {
    border-color: #c41230;
    color: #c41230;
}

.pagination .page-number.active {
    background: #c41230;
    color: #fff;
    border-color: #c41230;
}

.pagination .page-dots {
    color: #666;
}

/* 详情弹窗样式 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #c41230;
}

.modal-body {
    margin-top: 20px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .filter-box {
        width: 100%;
        flex-direction: column;
    }

    .category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .category-btn {
        white-space: nowrap;
    }

    .people-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
} 