/* 始终显示竖向滚动条 */
body {
    overflow-y: scroll;
}

/* 字体文件 */
@font-face {
    font-family: KaiXinSongA;
    src: url(/res/fonts/KaiXinSongA.woff2) format("woff2"), url(/res/fonts/KaiXinSongA.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: KaiXinSongB;
    src: url(/res/fonts/KaiXinSongB.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

.home-title ruby rt {
    margin-bottom: 0.5em;
}

article :is(h1, h2, h3, h4, h5, h6) {
    margin: 0.5rem 0 !important;
}

article :is(p, ul, ol) {
    margin: 0.5rem 0 0 0 !important;
}

/* 页面加载中 */
.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;
}

/*文章*/
article p {
    text-indent: 2em;
}

/*表单*/
.img-inp {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
}

    .img-inp .img-inp-wrapper {
        border: 3px solid white;
        box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
        background-image: url(/res/media/svg/files/blank-image.svg);
        border-radius: .475rem;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .img-inp .img-inp-btn {
        height: 25px;
        width: 25px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
        box-sizing: border-box;
        cursor: pointer;
        position: absolute;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translate(-50%, -50%);
    }

        .img-inp .img-inp-btn:hover {
            background: white;
        }

        .img-inp .img-inp-btn.img-inp-btn-change {
            left: 100%;
            top: 0;
        }

            .img-inp .img-inp-btn.img-inp-btn-change input {
                width: 0 !important;
                height: 0 !important;
                overflow: hidden;
                opacity: 0;
            }

        .img-inp .img-inp-btn.img-inp-btn-remove {
            left: 100%;
            top: 100%;
        }

    .img-inp.img-inp-empty .img-inp-btn-remove {
        display: none !important;
    }

    .img-inp.img-inp-changed .img-inp-btn-remove {
        display: flex !important;
    }

.validation-message {
    width: 100%;
    margin-top: .5rem;
    font-size: .95rem;
    color: var(--bs-form-invalid-color)
}

.view-side-search-bar input {
    border-radius: 0.475rem 0 0 0.475rem;
}

.view-side-search-bar button {
    border-radius: 0 0.475rem 0.475rem 0;
}

/*表格*/
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 td.text-wrap {
            word-wrap: break-word;
            word-break: break-all;
        }

    table.z-list col.sequence {
        width: 50px;
    }

    table.z-list col.actions {
        min-width: 3em;
    }

.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);*/
    }

@media (max-width: 575.98px) {
    .xs-hidden {
        display: none !important;
    }
}

/*列表*/
.z-list {
    overflow-x: auto;
}

.family-member-select.badge {
    min-width: 5rem;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: normal;
}

.keyword-highlight {
    color: red;
    background-color: yellow;
    font-weight: bold;
}

/*图表*/
.migrate-map-fw {
    width: 100%;
    min-height: 200px;
    height: 70vh;
}

@media (max-width: 576px) {
    .migrate-map-fw {
        height: 35vh;
    }
}

/*分页*/
.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-2by3 img {
    max-width: 100%;
}

.symbol.symbol-3by2 .symbol-label {
    height: 75px;
    width: 50px
}

.symbol.symbol-3by2 img {
    width: 50px;
}

.default-avatar img {
    opacity: 0.5;
}

.figure-row-float-end {
    width: 400px;
    display: flex;
    float: right;
    margin-left: 1em;
}

    .figure-row-float-end .doc-figure {
        width: 200px;
    }

@media (max-width: 576px) {
    .figure-row-float-end {
        width: 100%;
    }

        .figure-row-float-end .doc-figure {
            width: 50%;
        }
}

/*相关菜单*/
.related_menu {
    margin-top: 1em;
    border-top: 1px solid rgba(0,0,0,0.1);
}

    .related_menu li {
        margin-top: 0.5rem;
    }

/*姓氏*/
.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-page-header .ribbon {
    top: 105px;
    bottom: unset !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.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-page-header .ribbon {
        top: 97px;
    }

    .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.45em;
    }
}

/*人员*/
.members-table col.sequence {
    width: 8em !important;
}

.members-table col.person_name {
    width: 12em;
}

.members-table col.gender {
    width: 5em;
}

.members-table col.father {
    width: 8em;
}

.members-table col.seniority {
    width: 8em;
}

.members-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 .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;
    }

    .members-table table {
        table-layout: auto;
    }

    .members-table col.sequence {
        width: 3em !important;
    }

    .members-table col:not(.sequence) {
        width: auto;
    }

    .members-table td {
        white-space: wrap !important;
    }

    .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-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;
    }
}
