// 页面布局写在这里
.st-header {
    height: 95px;
    border-bottom: 3px solid @theme-active-color;
    position: relative;
    z-index: 10;
    background-color: #fcfcfc;
    .container {
        display: flex;
        align-items: center;
        height: 100%;
        .logo {
            height: 56px;
            img {
                height: 100%;
                object-fit: contain;
            }
        }
        > ul {
            display: flex;
            align-items: center;
            list-style: none;
            margin-bottom: 0;
            height: 100%;
            padding-top: 12px;
            > .nav-item {
                position: relative;
                margin-right: 30px;
                display: flex;
                align-items: center;
                // font-size: 1.1rem;
                height: 100%;
                > .nav-link {
                    white-space: nowrap;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    font-size: 1.1rem;
                    > i {
                        margin-left: 8px;
                        font-weight: bold;
                    }
                }
                > .submenu {
                    list-style: none;
                    position: absolute;
                    top: 110%;
                    left: 0;
                    padding: 0 !important;
                    display: flex;
                    flex-direction: column;
                    z-index: 100;
                    // transform: translateX(-50%);
                    opacity: 0;
                    transition: 0.2s;
                    pointer-events: none;
                    // border-left: 1px solid #eee;
                    // border-right: 1px solid #eee;
                    border-bottom: 2px solid @theme-active-color;
                    border-top: 3px solid @theme-active-color;
                    border-radius: 0 0 2px 2px;
                    > li {
                        padding: 10px 20px;
                        border-bottom: 1px solid #eee;
                        transition: 0.1s;
                        font-size: 0.9rem;
                        > .nav-link {
                            display: flex;
                            white-space: nowrap !important;
                        }
                        &:hover {
                            background-color: rgba(151, 96, 119, 0.19);
                            color: @theme-active-color;
                            font-weight: bold;
                        }
                    }
                }
                &:hover {
                    & > .submenu {
                        top: 101%;
                        opacity: 1;
                        pointer-events: auto;
                        background-color: #fff;
                    }
                }
            }
        }
        .func {
            margin-left: auto;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-top: 12px;
            .search {
                cursor: pointer;
                // flex: 1;
                // max-width: 400px;
                // min-width: 200px;
                // display: flex;
                // align-items: center;
                // justify-content: flex-end;
                // border: 1px solid #000000;
                // height: 40px;
                // border-radius: 5px;
                // input {
                //     display: flex;
                //     width: 100%;
                //     height: 100%;
                //     padding-left: 20px;
                //     border-radius: 7px;
                //     border: none;
                //     outline: none;
                //     font-size: 0.9rem;
                // }
                img {
                    width: 24px;
                    height: 24px;
                    object-fit: contain;
                    // margin: 0 20px;
                }
                &:hover {
                    color: @theme-active-color;
                }
            }
            .login {
                display: flex;
                align-items: center;
                font-size: 0.9rem;
                margin: 0 35px;
                img {
                    width: 24px;
                    height: 24px;
                    object-fit: contain;
                    margin-left: 5px;
                }
            }
            .submit {
                display: flex;
                align-items: center;
                justify-content: center;
                border: 1px solid #000;
                border-radius: 5px;
                padding: 6px 15px;
                font-size: 0.9rem;
                img {
                    width: 24px;
                    height: 24px;
                    object-fit: contain;
                    margin-right: 5px;
                }
            }
        }
    }

    .search-wrap {
        position: absolute;
        top: 70px;
        width: 100%;
        padding: 15px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        transition: 0.2s;
        box-shadow: 0 5px 5px #ddd;
        .search-box {
            position: relative;
            .search {
                display: flex;
                align-items: center;
                position: relative;
                input {
                    min-width: 440px;
                    height: 40px;
                    border-radius: 4px 0 0 4px;
                    border: 1px solid #242424;
                    outline: none;
                    font-size: 18px;
                    padding-left: 10px;
                }
                .search-btn {
                    width: 120px;
                    height: 40px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: #242424;
                    color: #fff;
                    border-radius: 0 4px 4px 0;
                    font-size: 18px;
                    cursor: pointer;
                }
                .search-close-btn {
                    width: 30px;
                    height: 30px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 24px;
                    position: absolute;
                    right: -60px;
                    top: 50%;
                    transform: translateY(-45%);
                    color: #242424;
                    cursor: pointer;
                    transition: 0.3s;
                    &:hover {
                        color: #a31953;
                    }
                }
            }
            .search-in-wrap {
                margin-top: 10px;
                font-size: 18px;
                color: #242424;
                .checkbox {
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    margin-top: 5px;
                    max-width: 560px;
                    margin-bottom: 0 !important;
                    label {
                        color: #242424;
                        font-size: 18px;
                        margin-top: 5px;
                        // border-bottom: 1px solid #eee;
                        display: flex;
                        align-items: center;
                        min-width: 20%;
                    }
                    input[type="checkbox"] {
                        margin-left: -18px;
                        margin-top: -3px;
                        width: 14px;
                        height: 14px;
                        // margin-top: 2px;
                        // position: relative;
                    }
                    input[type="checkbox"]::after {
                        position: absolute;
                        top: 0;
                        color: #000;
                        width: 14px;
                        height: 14px;
                        display: inline-block;
                        visibility: visible;
                        padding-left: 0px;
                        text-align: center;
                        content: " ";
                        border-radius: 3px;
                    }
                    input[type="checkbox"]:checked::after {
                        content: "✓";
                        color: #fff;
                        font-size: 10px;
                        line-height: 15px;
                        background-color: #000;
                    }
                    .c-active input[type="checkbox"]:checked::after {
                        background-color: @theme-active-color !important;
                    }
                }
            }
        }
    }
    .search-wrap-active {
        top: 95px;
        opacity: 1;
        pointer-events: all;
    }
}
.st-mainbody {
    min-height: 50vh;
}
.st-footer {
    border-top: 3px solid @theme-active-color;
    background-color: #fcfcfc;
    .container {
        display: flex;
        padding-top: 20px;
        .logo {
            height: 68px;
            margin-right: auto;
            img {
                height: 68px;
                object-fit: contain;
            }
        }
        > ul {
            flex: 1;
            list-style: none;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            // margin-left: 10%;
            margin-bottom: 20px;
            > .nav-item {
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                > .nav-link {
                    font-size: 1rem;
                    font-weight: bold;
                }
                > .submenu {
                    list-style: none;
                    padding: 0;
                    margin-top: 15px;
                    li {
                        margin-bottom: 5px;
                        a {
                            font-size: 0.9rem;
                        }
                        &:hover {
                            a {
                                color: @theme-active-color;
                                // text-decoration: underline;
                            }
                        }
                    }
                }
            }
        }
    }
    .doc-footer {
        // border-top: 1px solid #999;
        padding: 10px 0;
        background-color: #c6c4c8;
        .container {
            padding: 0 !important;
        }
        .links {
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            a:not(:first-child) {
                position: relative;
                &::after {
                    content: "";
                    display: flex;
                    width: 1px;
                    height: 12px;
                    background-color: rgb(110, 110, 110);
                    border-radius: 2px;
                    position: absolute;
                    top: 50%;
                    left: -10px;
                    transform: translateY(-50%);
                }
            }
            a {
                display: flex;
                align-items: center;
                position: relative;
                // padding: 0 10px;
                margin: 0 10px;
                white-space: nowrap;
            }
        }
        .copyright {
            margin-left: auto;
            font-size: 0.8rem;
        }
    }
}

.bread-crumb {
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    .breadcrumb > li > ul {
        display: none;
    }
    // margin: 20px 0 10px;
    .breadcrumb {
        margin-bottom: 0;
        margin-top: 5px;
        margin-left: 5px;
    }
    .bread-crumb-title {
        i {
            margin: 0 5px 5px;
        }
        padding: 10px 0;
        display: flex;
        align-items: center;
        margin-top: 5px;
        line-height: 20px;
    }
}

.page-g {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-search {
    .st-mainbody {
        padding-top: 140px;
        .header {
            .header-title {
                margin: 0 !important;
                color: #242424 !important;
            }

            .page-g {
                .pagination {
                    transform: scale(0.8) translateX(40px);
                    margin: 0 !important;
                }
            }
        }
        .search-title {
            font-size: 24px;
            display: flex;
            align-items: center;
            // justify-content: center;
            border-bottom: 3px solid @theme-active-color;
            // margin: 50px 0;
            padding: 10px;
        }
        // .search {
        //     display: flex;
        //     align-items: center;
        //     position: relative;
        //     justify-content: center;
        //     margin-bottom: 30px;
        //     input {
        //         min-width: 350px;
        //         height: 40px;
        //         border-radius: 4px 0 0 4px;
        //         border: 1px solid #242424;
        //         outline: none;
        //         font-size: 18px;
        //         padding-left: 10px;
        //     }
        //     .search-btn {
        //         width: 120px;
        //         height: 40px;
        //         display: flex;
        //         align-items: center;
        //         justify-content: center;
        //         background-color: #242424;
        //         color: #fff;
        //         border-radius: 0 4px 4px 0;
        //         font-size: 18px;
        //         cursor: pointer;
        //     }
        // }
        .search-cont-item {
            display: flex;
            align-items: flex-start;
            padding: 20px 0;
            &:not(:last-child) {
                border-bottom: 1px solid #eee;
            }
            .search-cont-l {
                flex: 0 0 20%;
                font-size: 14px;
                // font-family: none;
                line-height: 24px;
                .item-date {
                    font-size: 0.8rem;
                    color: #6a6a6a;
                }
                .item-fier {
                    font-size: 0.9rem;
                    font-weight: bold;
                }
                .item-vol {
                    font-size: 0.8rem;
                    color: @theme-active-color;
                }
                .item-doi {
                    font-size: 0.8rem;
                    &:hover {
                        color: @theme-active-color !important;
                    }
                }
            }
            .search-cont-c {
                flex: 1;
                margin: 0 15px;
                .item-title {
                    color: #a31953;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                    transition: 0.2s;
                    &:hover {
                        color: #242424 !important;
                    }
                }
                .item-subtitle {
                    font-size: 0.9rem;
                    margin: 4px 0;
                    color: #6a6a6a;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                }
                .item-content {
                    font-size: 0.9rem;
                    color: #000;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 4;
                    overflow: hidden;
                }
            }
            .search-cont-r {
                flex: 0 0 204px;
                width: 204px;
                border: 1px solid #eee;
                img {
                    width: 100%;
                    height: 180px;
                    object-fit: contain;
                }
            }
            &:hover {
                .search-cont-c {
                    .item-title {
                        color: @theme-active-color;
                        // text-decoration: underline;
                    }
                }
            }
        }
    }
}

.x-author-item:after {
    margin-left: 0 !important;
}
.x-author-item:nth-last-of-type(2):after {
    margin-left: 5px !important;
    margin-right: 0px !important;
}

.pagination li.active a,
.pagination li.active span {
    background: @theme-active-color;
}
.btn-primary,
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background-color: @theme-active-color;
    border-color: @theme-active-color;
}
.text-primary,
.pagination > li > a,
.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span,
.pagination > li > span:focus,
.pagination > li > span:hover {
    color: @theme-active-color;
}

.left-line {
    font-size: 24px !important;
    position: relative;
    padding-left: 15px;
    &::before {
        content: "";
        position: absolute;
        width: 4px;
        height: 20px;
        border-radius: 1px;
        background-color: @theme-active-color;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-55%);
    }
}
h2 {
    font-size: 28px !important;
}
p {
    line-height: 1.4rem !important;
}
.c-active {
    color: @theme-active-color !important;
}
.fwb {
    font-weight: bold !important;
}

.pagination li a.next-page,
.pagination li a.prev-page {
    font-family: none;
    font-size: 30px !important;
    line-height: 22px;
}

.pagination li a {
    // width: 20px !important;
    height: 40px !important;
    display: flex !important;
    // align-items: center !important;
    justify-content: center !important;
}

.pagination li a.next-page:hover,
.pagination li a.prev-page:hover {
    border: 1px solid transparent !important;
}

hr {
    margin: 0 !important;
}
