@import "./styles.css";


:root{
    --h-title-color:#202084;
    --top-section-overlay: 0.52;
    --skeleton-base: #e4e7eb;
    --skeleton-highlight: #f5f7fa;
    --site-english-font: "Times New Roman", Times, "Noto Serif CJK SC", SimSun, serif;
    --bs-font-sans-serif: var(--site-english-font);
    --bs-font-monospace: var(--site-english-font);
    --bs-body-font-family: var(--site-english-font);
}

body,
body button,
body input,
body optgroup,
body select,
body textarea,
body .btn,
body .dropdown-menu,
body .tooltip,
body .popover,
body .font-alt,
body .font-monospace,
body #mainNav .navbar-brand,
body section header h2,
body h1,
body .h1,
body h2,
body .h2,
body h3,
body .h3,
body h4,
body .h4,
body h5,
body .h5,
body h6,
body .h6 {
    font-family: var(--site-english-font) !important;
}

body {
    background: #ffffff;
}

.header {
    border-bottom: solid 2px #202084;
    z-index: 10000;
}

#mainNav {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background-color: #202084 !important;
}

#mainNav .navbar-brand,
#mainNav .navbar-nav .nav-item .nav-link,
#mainNav .navbar-toggler {
    color: #ffffff !important;
}

#mainNav .navbar-brand:hover,
#mainNav .navbar-brand:active,
#mainNav .navbar-brand:focus,
#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-toggler:hover {
    color: #87D6FF !important;
}

#mainNav .navbar-nav .nav-item .nav-link.active {
    color: #ffffff !important;
}

#mainNav .navbar-nav .nav-item .nav-link.active:hover {
    color: #87D6FF !important;
}

#mainNav .navbar-toggler {
    border-color: #ffffff !important;
}

#mainNav .navbar-toggler:hover {
    border-color: #87D6FF !important;
}

.page-skeleton {
    position: fixed;
    top: 17rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8000;
    overflow: auto;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    padding-top: 2.4rem;
    transition: opacity 280ms ease, visibility 280ms ease;
}

.site-ready .page-skeleton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-block {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    border-radius: 4px;
    background: var(--skeleton-base);
}

.skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    animation: skeleton-shimmer 1450ms ease-in-out infinite;
}

.skeleton-section {
    padding: 4rem 0;
}

.skeleton-section-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff);
}

.skeleton-section-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1);
}

.skeleton-section-title {
    width: 42%;
    height: 2rem;
    margin-bottom: 2rem;
}

.skeleton-line {
    height: 1.1rem;
    margin-bottom: 1rem;
}

.skeleton-line-long {
    width: 100%;
}

.skeleton-line:not(.skeleton-line-long):not(.skeleton-line-short) {
    width: 88%;
}

.skeleton-line-short {
    width: 68%;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    padding: 7rem 0;
    height: 17rem;
    overflow: hidden;
    background-color: #18202a;
}

.site-loading .top-section {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(231, 235, 240, 0.16)),
        linear-gradient(135deg, #edf0f3, #f8f9fb);
}

.top-section h2 {
    font-weight: 400;
}S

#top-section-bg-text {
    position: relative;
    top: 5em;
    left: -3ch;
}

.top-section .top-section-content {
    position: relative;
    z-index: 2;
}

.top-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1200ms ease, transform 7000ms ease;
}

.top-section-bg-active {
    opacity: 1;
    transform: scale(1);
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, calc(var(--top-section-overlay) + 0.12)), rgba(0, 0, 0, var(--top-section-overlay))),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.36));
}

.site-loading .top-section:before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(222, 227, 234, 0.2)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(222, 227, 234, 0.16));
}

.site-loading .top-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-shimmer 1450ms ease-in-out infinite;
}

section header h2{
    font-family: var(--site-english-font) !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

#home {
    padding-top: 2.5rem;
}

section header h2 .songti-name {
    font-family: SimSun, "Songti SC", serif !important;
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
}

#home .main-body > p:nth-of-type(2) {
    text-align: justify;
    text-justify: inter-word;
}

#home .main-body h4 {
    margin-top: 3rem;
    font-size: 1.9rem;
    color: var(--h-title-color);
}

#home .main-body strong {
    font-weight: 700;
}

@media screen and (min-width: 992px) {
    #home .main-body h4:first-of-type {
        clear: right;
    }
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


#avatar {
    position: relative;
    top:min(-65px,max(-100px,calc(-1*100vw/12)));
    max-width: 55em;
    margin: 0 1.5rem 0 7ch;
    float: right;
    z-index: 9000;
}

#avatar img {
    width: min(360px, max(260px, calc(100vw / 3)));
    height: auto;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 991px) {
    #avatar {
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-section-bg {
        transition: none;
        transform: none;
    }

    .page-skeleton {
        transition: none;
    }

    .skeleton-block::after {
        animation: none;
    }
}
