@font-face {
    font-family: KaiXinSongA;
    src: url(/fonts/KaiXinSongA.woff2) format("woff2"), url(/fonts/KaiXinSongA.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: KaiXinSongB;
    src: url(/fonts/KaiXinSongB.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

/* 页面加载中 */
.page-loader {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

    .page-loader.bg-clear {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .page-loader .page-loader-body {
        width: 20rem;
        height: 10rem;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    }

/* 区域加载中 */
.blockui-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

    .blockui-overlay .blockui-message {
        width: 20rem;
        height: 10rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        background: white;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    }

/*超链接-禁用*/
.disabled-link {
    pointer-events: none;
}

/*表单验证消息*/
.validation-message {
    width: 100%;
    margin-top: .5rem;
    font-size: .95rem;
    color: var(--bs-form-invalid-color)
}

/*列表*/
.z-list {
    overflow-x: auto;
}

.z-list-head.sticky {
    width: auto;
    /* min-height: 70px;*/
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
}

    .z-list-head.sticky table {
        /* background: var(--bs-app-bg-color);*/
    }

.family-member-select.badge {
    min-width: 5rem;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: normal;
}

/*表格*/
table.z-list {
    table-layout: fixed;
    background: var(--bs-body-bg);
}

    table.z-list td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    table.z-list col.sequence {
        width: 50px;
    }

    table.z-list col.actions {
        min-width: 3em;
    }

@media (max-width: 575.98px) {
    .xs-hidden {
        display: none !important;
    }
}

/*分页*/
.pagination .page-item {
    white-space: nowrap;
}

.z-pager-size select {
    margin: 0 2px;
    padding: 0px 5px !important;
    --bs-form-select-bg-img: none !important;
}

.z-pager-number input {
    margin: 0 2px;
    padding: 0px !important;
}

/*图片*/
.symbol.symbol-3by2 .symbol-label {
    height: 75px;
    width: 50px
}

.symbol.symbol-3by2 img {
    width: 50px;
}

.default-avatar img {
    opacity: 0.5;
}

/*姓氏*/
.surname-list col.sequence {
    width: 5em;
}

.surname-list col.surname {
    width: 5em;
}

.surname-list col.pinyin {
    width: 8em;
}

.surname-list col.intro {
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.migrate-map {
    width: 100%;
    height: calc(100vh * 0.7);
}

@media (max-width: 575.98px) {
    .surname-list table {
        table-layout: auto;
    }
}

/*宗族*/
.group-details header {
    min-height: 100px;
    margin: -2rem -2.25rem 0 -2.25rem;
    padding: 2em;
    box-sizing: border-box;
    border-radius: 0.625rem 0.625rem 0 0;
    color: white;
    background: rgba(91, 155, 213, 1);
    display: flex;
    gap: 1em;
    align-items: center;
}

    .group-details header .logo {
        width: 2em;
        height: 2em;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 3em;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
    }

        .group-details header .logo img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }

    .group-details header .title {
        font-size: 1.8em;
        font-weight: bold;
    }

.group-details .tab_box_bottom {
    box-sizing: border-box;
    max-width: var(--view-width-max);
    height: 3em;
    display: flex;
    align-items: center;
}

    .group-details .tab_box_bottom a {
        display: flex;
        height: 100%;
        padding: 1em;
        color: white;
        border-radius: 0 0 0.5em 0.5em;
        background: rgba(91, 155, 213, 1);
        box-shadow: inset 0px 10px 10px -5px rgba(0, 0, 0, 0.5);
        margin-left: 1em;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
        gap: 5px;
    }

        .group-details .tab_box_bottom a:first-child {
            margin-left: 0.6em;
        }

        .group-details .tab_box_bottom a:hover {
            box-shadow: inset 0px 10px 10px -5px rgba(0, 0, 0, 0.2);
        }

        .group-details .tab_box_bottom a.active {
            box-shadow: 0px 10px 10px -5px rgba(0, 0, 0, 0.5);
        }

.group-details section {
    padding: 2em;
}

    .group-details section .details_box {
        min-height: 2em;
        position: relative;
        padding: 1em;
        overflow: auto;
    }

@media (max-width: 1088px) {
    .group-details .tab_box_bottom a i {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .group-details .tab_box_bottom {
        margin: 0 -2.25rem;
    }

        .group-details .tab_box_bottom a {
            padding: 0.5rem;
        }

            .group-details .tab_box_bottom a i {
                display: none !important;
            }

    .group-details section .details_box {
        margin: 0 -3rem;
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .group-details .tab_box_bottom a {
        margin-left: 0.65em;
    }
}

/*人员*/

.personnel-table col.sequence {
    width: 8em !important;
}

.personnel-table col.person_name {
    width: 8em;
}

.personnel-table col.gender {
    width: 5em;
}

.personnel-table col.father {
    width: 8em;
}

.personnel-table col.seniority {
    width: 8em;
}

.personnel-table col.generation {
    width: 8em;
}

.person-card {
    width: 26em;
    min-width: 26em;
    padding: 1em;
    white-space: normal;
    font-size: 14px;
    line-height: 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background: white;
}

    .person-card .card-row {
        display: flex;
    }

        .person-card .card-row div:not(:first-child) {
            margin-left: 1em;
        }

    .person-card:hover {
        transition: ease-in-out;
        box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.27);
    }

    .person-card .photo img {
        width: 95px;
    }

    .person-card .person-name {
        font-weight: bold;
    }

    .person-card .person-gender,
    .person-card .lineage-generation,
    .person-card .relatives-relationship,
    .person-card .relatives-seniority,
    .person-details .lineage-generation,
    .person-details .person-gender,
    .person-attrs span,
    .person-parent-relative .relatives-relationship,
    .person-parent-relative .relatives-seniority {
        margin-left: 0.5em;
        padding: 0.2em 0.5em;
        color: #409eff;
        border: 1px solid #409eff;
        border-radius: 0.2em;
        font-size: 0.8em;
        white-space: nowrap;
    }

.person-parent-relative {
    line-height: 3em;
}

.person-card .lineage-intro {
    margin-top: 1em;
}

.person-details > div {
    margin-top: 3em;
}

.person-details .person-basic .person-name {
    font-size: xx-large;
}

.person-details .person-basic .lineage-generation,
.person-details .person-basic .person-gender {
    font-size: x-large;
    font-weight: 500;
}

.person-details .person-intro {
    display: flex;
}

.person-details .person-photo img {
    width: 95px;
}

.person-details .intro-box {
    margin-left: 2em;
}

.person-details .card-list-row {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
}

.person-details .parent-list-box {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

@media (max-width: 800px) {
    .person-details .person-card {
        width: auto;
        min-width: auto;
        margin-top: 1em;
    }

        .person-details .person-card .card-row {
            flex-direction: column;
            align-items: center;
        }

    .person-details .card-list-row {
        flex-direction: column;
    }

    .person-photo {
        text-align: center;
    }

    .person-details .person-intro {
        flex-direction: column;
    }

    .person-details .intro-box {
        margin-left: 0;
    }

    .person-details .card-list-row div {
        display: block;
        margin-left: 0 !important;
    }
}

@media (max-width: 1200px) {
    .children-list .card-list-row {
        flex-direction: column;
    }

        .children-list .card-list-row div {
            margin-left: 0 !important;
            margin-top: 1em;
        }
}

@media (max-width: 575.98px) {
    .group-details section {
        margin: 0em -3em;
    }

    .personnel-table table {
        table-layout: auto;
    }

    .personnel-table col.sequence {
        width: 3em !important;
    }

    .personnel-table col:not(.sequence) {
        width: auto;
    }

    .personnel-table td {
        white-space: wrap !important;
    }

    .person-details > .person-basic {
        margin-top: 1.5em;
    }

    .person-details .person-basic .person-name {
        font-size: large;
    }

    .person-details .person-basic .lineage-generation,
    .person-details .person-basic .person-gender {
        font-size: medium;
    }
}

/*书籍*/
.book_content {
    display: flex;
    flex-direction: column;
}

    .book_content aside {
        display: flex;
        flex-direction: column;
        padding: 1em 0;
        text-align: right;
        line-height: 2em;
        font-weight: 100;
        font-size: 0.8em;
    }

        .book_content aside:last-of-type {
            text-align: left;
        }

    .book_content h1 {
        margin: 0;
        padding: 0 !important;
    }

    .book_content article {
        align-self: center;
        width: 42em;
        max-width: 42em;
        border: 1px dotted rgba(0, 0, 0, 0.1);
        border-radius: 1em;
        padding: 1em;
        line-height: 1.5em;
    }

        .book_content article h1,
        .book_content article h2 {
            display: block !important;
            text-align: center;
        }

            .book_content article h2 span:not(:first-child) {
                margin-left: 0.5em;
            }

@media (max-width: 800px) {
    .book_content article {
        width: auto;
    }
}
