* {
    padding: 0;
    margin: 0;
}

body {
    background-image: url("../img/bg.png")/*tpa=https://xxb.njupt.edu.cn/_upload/tpl/0f/5a/3930/template3930/img/bg.png*/;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #0464AE;
}


#main {
    overflow: hidden;
    width: calc(1278 / 1440 * 100%);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.1rem, 1vw, 5rem);
}


#header {
    width: 100%;
    aspect-ratio: 1278 / 58;
    padding: calc(54 / 2139 * 100%) 0;
    display: flex;
    justify-content: space-between;
}

#header img {
    scale: 2.2;
    transform-origin: left;
    height: 100%;
    object-fit: contain;
}

#header>div {
    width: calc(275 / 1278 * 100%);
    aspect-ratio: 275 / 58;
    display: flex;
    flex-direction: column;
    color: white;
    align-items: flex-end;
    justify-content:center;
}

#menu {
    display: none;
}

#search {
    width: 100%;
    aspect-ratio: 259 / 36;
    padding: clamp(calc(8 / 1440 * 100%), 0.005vw, 8px);
    background: #FFF;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

#search input {
    width: calc(241 / 259 * 100%);
    min-height: 2em;
    border: 0;
    font-size: clamp(0.1rem, 1vw, 5rem);
}

#submit {
    position: absolute;
    width: 2em !important;
    z-index: 10;
    opacity: 0;
    right: 0;
    z-index: 100;
    cursor: pointer;
}

#search svg {
    width: 1em;
    height: 1em;
    cursor: pointer;
}


.navigation {
    width: 100%;
    aspect-ratio: 1278 / 52;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background-color: #1C378F;
    align-items: center;
    position: relative;
}

.navigation a {
    width: 100%;
    height: 3em;
    line-height: 3em;
    color: white;
    text-decoration: none;
    text-align: center;
}

.navigation a:hover {
    width: 100%;
    scale: 1.2;
    transition: all 200ms linear;
}

.navigation div {
    width: 100%;
    height: 100%;
}

.pictureContainer{
    width: 100%;
    height: 7em;
    overflow: hidden;
}

.picture{
    width: 100%;
    height: 100%;
    background-image: url("../img/headbg.png")/*tpa=https://xxb.njupt.edu.cn/_upload/tpl/0f/5a/3930/template3930/img/headbg.png*/;
    background-size: cover;
    animation: scaleGain 20s ease-in-out infinite;
}

#footer {
    width: calc(100% - 20px);
    min-height: calc(230 / 2139 * 100%);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #1B3794;
    background-image: url("../img/footer.png")/*tpa=https://xxb.njupt.edu.cn/_upload/tpl/0f/5a/3930/template3930/img/footer.png*/;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

#address {
    width: calc(468 / 1278 * 100%);
    aspect-ratio: 468 / 230;
    list-style: none;
    margin-left: calc(32 / 1278 * 100%);
    display: flex;
    gap: calc(10 / 230 * 100%);
    flex-wrap: wrap;
    align-content: center;
}

#address li {
    height: 1.5em;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.625em;
}

#address svg {
    height: 100%;
    aspect-ratio: 1 / 1;
}

#QRCodediv {
    color: #E3E6F2;
    height: 100%;
    aspect-ratio: 276 / 230;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-right: calc(32 / 1278 * 100%);
    font-weight: 300;
}

#QRCodediv .QRCodeLine{
    width: 16em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#QRCodediv .QRCode{
    width: 7em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#QRCodediv .QRCode div {
    color: white;
    margin-top: 0.2em;
    margin-bottom: 0.3em;
    font-weight: 600;
    font-size: 1.3em;
}

#QRCodediv .QRCode img {
    width: 7em;
    aspect-ratio: 1 / 1;
}

.articleContainer{
    width: 100%;
    min-height: 60rem;
    background-color: white;
    padding-bottom: 2em;
}

.articleArea{
    width: 80%;
    margin: 0 auto;
    min-height: 40em;
}

.articleTitle{
    text-align: center;
    line-height: 3em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.articleCut{
    color: #E3E6F2;
}

.articleMetas{
    padding-top: 0.5em;
    text-align: center;
    color: gray;
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 2em;
}

.enter{
    width: 100%;
    min-height: 20em;
}

.enter img{
    object-fit: contain;
    margin: 0 auto;
    max-width: 100%;
    height: auto !important;
}

.WP_VisitCount{
    display: unset;
}

@media (max-width:992px) {

    #main {
        font-size: clamp(0.1rem, 1.3vw, 5rem);
    }

    #address {
        width: 36em;
    }


}

@media (max-width:768px) {
    body {
        background-position: left top;
        background-size: 300%;
    }

    #main {
        width: 100%;
        aspect-ratio: unset;
        font-size: clamp(0.1rem, 3.5vw, 5rem);
    }

    .navigationMobile {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5em;
        background-color: #1C378F;
        align-items: center;
    }

    .navigationMobile a {
        width: 100%;
        height: 3em;
        line-height: 3em;
        color: white;
        text-decoration: none;
        text-align: center;
    }

    .navigationMobile a:hover {
        background-color: #182d73;
    }

    .navigationMobile a:hover {
        width: 100%;
        scale: 1.2;
        transition: all 200ms linear;
    }

    .navigationMobile div {
        width: 100%;
        height: 100%;
    }

    .navigation {
        display: none;
    }

    #header {
        width: calc(100% - 2em);
        aspect-ratio: 370 / 37;
        padding: 1em;
        /* padding-bottom: 0.5em; */
    }

    #header img {
        /* width: auto; */
        scale: 1.5;
        height: 100%;
        aspect-ratio: unset;
        object-fit: contain;
    }

    #menu {
        height: 100%;
        aspect-ratio: 1 / 1;
        display: flex;
    }

    #hamberger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 20%;
        cursor: pointer;
        transition: all 200ms ease-out;
    }

    #hamberger div {
        width: 65%;
        height: 5%;
        background: white;
        transition: all 200ms linear;
    }

    .hambergerActive {
        gap: 0 !important;
    }

    .hambergerActive div:nth-child(2) {
        display: none;
    }

    #menu+div {
        display: none;
    }

    #menu {
        display: flex;
    }

    .navigationMobile > div:first-child {
        padding: 0.5em;
        color: white;
        display: flex;
        flex-wrap: wrap;
    }

    #search {
        aspect-ratio: 370 / 20;
        justify-content: space-between;
    }

    #search input {
        font-size: 1em;
    }

    #search+div {
        text-align: center;
        font-size: 0.75em;
    }

    #footer {
        justify-content: center;
        background-size: 295%;
        background-position: 45% 100%;
    }

    #QRCodediv {
        align-items: center;
        margin-right: unset;
        aspect-ratio: unset;
        padding: 1em 0;
    }

    #address {
        gap: 1em;
        margin-top: 1.5em;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    #address li {
        width: 24em;
        letter-spacing: 0.02em;
        height: 2em;
        gap: 1.5em;
    }

    .articleContainer{
        min-height: 50em;
    }

    .article{
        padding-top: 3em;
    }

    .articleMetas{
        flex-direction: column;
        gap: 0.2em;
        font-size: 0.75em;
    }

    .articleTitle{
        line-height: unset;
        font-size: 1.5em;
    }

    .enter{
        padding-top: 2em;
    }

    .pictureContainer{
        display: none;
    }

}

nav#navigation div[frag] > *{
    display: none;
}
