/* 
	南京大学天文与空间科学学院 英文站
	@ 20200702
	@ 南京博杉信息技术有限公司
 */

@import url('reset.css');

/* common */

.warp {
    width: 1200px;
    margin: 0 auto;
}


/* g-header */

.m-snav {
    height: 130px;
    line-height: 130px;
    background-color: #63065f;
}

.m-snav .warp {
    position: relative;
}

.m-snav .fnav {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0;
}

.m-snav .fnav .box,
.m-snav .fnav .link {
    display: inline-block;
    font-size: 14px;
}

.m-snav .fnav .box {
    margin: 0 30px 0 0;
}

.m-snav .fnav .box form {
    position: relative;
}

.m-snav .fnav .box .text {
    width: 230px;
    height: 34px;
    line-height: 34px;
    box-sizing: border-box;
    padding: 0 13px;
    background-color: #ffffff;
}

.m-snav .fnav .box .sub {
    width: 48px;
    height: 34px;
    background-color: #b79369;
    cursor: pointer;
    background-image: url(gbs_2.png);
    background-position: center;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: 49px;
}

.m-snav .fnav .link a {
    color: #ffffff;
}

.m-snav .fnav .link a:first-child::after {
    content: '|';
    margin: 0 2px 0 10px;
    font-size: 12px;
}

.g-hd .m-nav {
    height: 50px;
    line-height: 50px;
    background-color: #73116f;
    font-size: 0;
}

.g-hd .m-nav .item {
    display: inline-block;
    font-size: 18px;
    width: 14.285%;
    text-align: center;
    position: relative;
}

.g-hd .m-nav .item:hover {
    background-color: #63065f;
}

.g-hd .m-nav .item span {
    display: inline-block;
    width: 10px;
    height: 7px;
    vertical-align: middle;
    margin: 0 0 0 7px;
    background-image: url(gbs_3.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.g-hd .m-nav .item a {
    color: #ffffff;
}

.g-hd .m-nav .item .child {
    position: absolute;
    top: 50px;
    left: 0;
    font-size: 16px;
    text-align: left;
    display: none;
    z-index: 5;
}

.g-hd .m-nav .child a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 16px;
    background-color: #63065f;
    width: auto;
    white-space: nowrap;
}

.g-hd .m-nav .child a:nth-child(2n) {
    background-color: #73116f;
}

.g-ft {
    background-color: #303030;
}

.g-ft .m-fctx {
    height: 90px;
    display: table;
}

.g-ft .m-fctx .ctx {
    font-size: 14px;
    line-height: 28px;
    color: #ffffff;
    color: rgba(255, 255, 255, 0.6);
    display: table-cell;
    vertical-align: middle;
}

.g-ft .m-fctx .link {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.u-link {
    width: 215px;
    height: 35px;
    line-height: 35px;
    background-color: #ffffff;
    border-radius: 18px;
    opacity: 0.95;
    display: inline-block;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #333333;
    box-sizing: border-box;
    padding: 0 21px;
    position: relative;
    vertical-align: middle;
}

.u-link .box {
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    left: 0px;
    bottom: 20px;
    z-index: -1;
    padding: 15px 5px 15px 21px;
    box-sizing: border-box;
    border-radius: 18px 18px 0 0;
    display: none;
}

.u-link .box .box-ctx {
    max-height: 170px;
    overflow-y: scroll;
}

.u-link .box a {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 90%;
}

.g-ft .m-cpr {
    height: 45px;
    line-height: 45px;
    font-size: 14px;
    color: #ffffff;
    color: rgba(255, 255, 255, 0.5);
    background-color: #1e1e1e;
    text-align: center;
}

::-webkit-scrollbar-track {
    border-radius: 2.5px;
    background-color: #F5F5F5;
    margin-top: 20px;
}

::-webkit-scrollbar-thumb {
    border-radius: 2.5px;
    background-color: #ccc;
    margin-top: 20px;
}

.g-mn {
    min-height: 3px;
    background-color: #f3f3f3;
    padding: 0 0 40px;
}

@media screen and (max-width: 600px) {
    .warp {
        width: 100%;
        padding: 0 0.625rem;
        box-sizing: border-box;
    }
    .m-snav {
        height: 7.7rem;
        line-height: 7.7rem;
        text-align: center;
    }
    .m-snav img {
        max-width: 70%;
        margin: 1.7rem auto 0;
    }
    .m-snav .fnav {
        width: 1.5rem;
        height: 1.5rem;
        background-image: url(gbs_4.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        left: 0.625rem;
        top: 3.9rem;
    }
    .m-snav .fnav .box {
        display: none;
    }
    .m-snav .fnav .link {
        width: 100vw;
        height: 1.7rem;
        line-height: 1.7rem;
        position: absolute;
        left: -0.625rem;
        top: -3.9rem;
        box-sizing: border-box;
        padding: 0 0.625rem;
        font-size: 0.7rem;
        text-align: right;
        border-bottom: 1px solid #6f1f6c;
    }
    .g-hd .m-nav {
        width: 60vw;
        height: 100vh;
        position: absolute;
        background-color: #252525;
        top: 0;
        left: -60vw;
        /* overflow-y: scroll; */
    }
    .g-hd .m-nav .innerboxshow {
        max-height: 100vh;
        overflow-y: scroll;
    }
    /* body style */
    body {
        width: 100vw;
        transition: ease-in 0.5s;
    }
    .g-action {
        position: fixed;
        margin: 0 0 0 60vw;
    }
    .g-hd .m-nav .item {
        display: block;
        width: 100%;
        min-height: 2.2rem;
        line-height: 2.2rem;
        font-size: 1rem;
        text-align: left;
        color: #c7c7c7;
        border-top: 1px solid rgba(0, 0, 0, .3);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
        text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
        box-sizing: border-box;
        padding: 0 0 0 1.5rem;
    }
    .g-hd .m-nav .item:hover {
        background-color: unset;
    }
    .g-hd .m-nav .p_nav_til {
        font-size: 1.2rem;
        line-height: 2.5rem;
        color: #ffffff;
        background-color: #333333;
        box-sizing: border-box;
        padding: 0 0 0 1rem;
    }
    .g-hd .m-nav .item .child {
        position: static;
    }
    .g-hd .m-nav .child a {
        font-size: 1rem;
        /* height: 2.2rem; */
        height: auto;
        min-height: 2.2rem;
        white-space: normal;
        line-height: 2.2rem;
        color: #c7c7c7;
        padding: 8px 0 8px 15px;
        border-top: 1px solid rgba(0, 0, 0, .3);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
        text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
        box-sizing: border-box;
        padding: 0 0 0 0.5rem;
        background-color: transparent;
    }
    .g-hd .m-nav .child a:nth-child(2n) {
        background-color: transparent;
    }
    .g-ft .m-fctx {
        height: auto;
    }
    .g-ft .m-cpr {
        height: auto;
        font-size: 0.8rem;
        line-height: 1.2rem;
        padding: 0.3rem 0;
    }
    .g-ft .m-cpr span {
        display: block;
        width: 100%;
    }
    .g-ft .m-fctx .link,
    .g-ft .m-fctx .ctx {
        font-size: 0.8rem;
        line-height: 1.2rem;
        display: block;
    }
    .g-ft .m-fctx .ctx {
        margin: 0.8rem 0 0;
    }
    .g-ft .m-fctx .link {
        display: flex;
        justify-content: space-between;
        margin: 1.5rem 0;
    }
    .u-link {
        width: 48%;
    }
}