
@import url("https://fontsapi.zeoseven.com/161/main/result.css");
/* Sarasa Gothic SC */
@import url("data:text/css,%40font-face%7Bfont-family%3A%22ZSFT-hk%22%3Bsrc%3Aurl(%22https%3A%2F%2Ffontsapi.zeoseven.com%2Fhk%2Fmain.woff2%22)%20format(%22woff2%22)%2Curl(%22https%3A%2F%2Ffontsapi-storage.zeoseven.com%2Fhk%2Fmain.woff2%22)%20format(%22woff2%22)%3Bfont-style%3Anormal%3Bfont-weight%3A100%20900%3Bfont-display%3Aswap%3B%7D");
/* ZSFT-hk(JetBarins Mono) */
@import url("data:text/css,%40font-face%7Bfont-family%3A%22ZSFT-gc%22%3Bsrc%3Aurl(%22https%3A%2F%2Ffontsapi.zeoseven.com%2Fgc%2Fmain.woff2%22)%20format(%22woff2%22)%2Curl(%22https%3A%2F%2Ffontsapi-storage.zeoseven.com%2Fgc%2Fmain.woff2%22)%20format(%22woff2%22)%3Bfont-style%3Anormal%3Bfont-weight%3A400%3Bfont-display%3Aswap%3B%7D");
/* ZSFT-gc(Alata) */

:root {
    --font-sans-serif: "Sarasa Gothic SC", "微软雅黑", sans-serif;
    --font-mono: "ZSFT-hk", "JetBrains Mono", "Consolas", "Sarasa Gothic SC", "微软雅黑", monospace;
    --font-deco: "ZSFT-gc", "Alata", "Futura PT", "Century Gothic", "Sarasa Gothic SC", "微软雅黑", sans-serif;
}

:root {
    --font-size: 16px;
    --line-height: 1.75;
    --title-font-size: 2rem;
    --subtitle-font-size: 1.5rem;
    --nav-height: 3.25rem;
    --sidebar-width: min(22rem, 75vw);

    --transition-duration: 0.3s;
    --transition-duration-fast: 0.15s;

    --darkmode-filter: invert(1) hue-rotate(180deg);
    --darkmode-filter-alter: invert(0) hue-rotate(0deg);

    --color-dark-layer-1: #000000;
    --color-dark-layer-2: #0B0B0B;
    --color-dark-layer-3: #262626;
    --color-dark-layer-4: #404040;
    --color-background-cover: rgba(0, 0, 0, 0.85);
    --color-dark-overlay: rgba(15, 15, 15, 0.95);

    --color-light-layer-1: #FFFFFF;
    --color-light-layer-2: #F2F2F2;
    --color-light-layer-3: #b1b1b1;
    --color-light-layer-4: #878787;

    --color-theme-bright: #8e7aff;
    --color-theme-medium: #7B68EE;
    --color-theme-dark: #5141ab;

    --color-positive: #339f33;
    --color-negative: #943030;
    --color-warning: #b39333;

    --color-text-layer-1: var(--color-light-layer-2);
    --color-text-layer-2: var(--color-light-layer-3);

    --icon-menu: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktbGlzdCIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yLjUgMTJhLjUuNSAwIDAgMSAuNS0uNWgxMGEuNS41IDAgMCAxIDAgMUgzYS41LjUgMCAwIDEtLjUtLjV6bTAtNGEuNS41IDAgMCAxIC41LS41aDEwYS41LjUgMCAwIDEgMCAxSDNhLjUuNSAwIDAgMS0uNS0uNXptMC00YS41LjUgMCAwIDEgLjUtLjVoMTBhLjUuNSAwIDAgMSAwIDFIM2EuNS41IDAgMCAxLS41LS41eiIvPgo8L3N2Zz4=");
    --icon-search: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktc2VhcmNoIiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik0xMS43NDIgMTAuMzQ0YTYuNSA2LjUgMCAxIDAtMS4zOTcgMS4zOThoLS4wMDFjLjAzLjA0LjA2Mi4wNzguMDk4LjExNWwzLjg1IDMuODVhMSAxIDAgMCAwIDEuNDE1LTEuNDE0bC0zLjg1LTMuODVhMS4wMDcgMS4wMDcgMCAwIDAtLjExNS0uMXpNMTIgNi41YTUuNSA1LjUgMCAxIDEtMTEgMCA1LjUgNS41IDAgMCAxIDExIDB6Ii8+Cjwvc3ZnPg==");
}

/* 全局样式 */

* {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
    font-family: var(--font-sans-serif);
    font-weight: normal;
    color: var(--color-text-layer-1);
    line-height: var(--line-height);
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    /* background-color: var(--color-dark-layer-1); */
}

html,
body {
    margin: 0px;
    padding: 0px;
    width: 100vw;
    overflow-x: hidden;
}

a {
    color: var(--color-theme-bright);
    text-decoration: none;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

trae-preview,
main-content {
    display: contents;
}

/* 工具类 */

.icon {
    background-color: transparent;
    border: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* 侧边栏 */

#side-bar {
    position: fixed;
    top: 0px;
    left: calc(var(--sidebar-width) * -1);
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    background-color: var(--color-dark-layer-2);
    padding: 1rem;
    z-index: 1000;
    transition: left var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out;
    opacity: 0;
    padding: 1rem 1rem 6rem 1rem;
}

#side-bar.open {
    left: 0px;
    opacity: 1;
}

#close-side-bar {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: block;
    pointer-events: none;
}

#close-side-bar.open {
    pointer-events: auto;
}

#content-container {
    background-color: var(--color-dark-layer-1);
    /* translate: unset unset; */
    /* transition: translate var(--transition-duration) ease-in-out; */
    /* animation: fade-in 2s ease-in-out; */
    width: 100vw;
    overflow-x: hidden;
}

/* #side-bar.open~#content-container {
    translate: var(--sidebar-width) 0px;
} */

#side-bar .side-block {
    margin-bottom: 1rem;
}

#side-bar .heading {
    font-size: 1.25rem;
    font-family: var(--font-deco);
    font-weight: bold;
    color: var(--color-text-layer-2);
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
}

#side-bar .heading::after {
    content: "";
    display: block;
    width: 100%;
    height: 0.15rem;
    background-color: var(--color-dark-layer-3);
    margin: 2.25rem 0rem 0rem 1rem;
}

#side-bar .menu-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    font-size: 0rem;
}

#side-bar .menu-item a {
    font-size: 1rem;
    min-width: 2rem;
    display: inline-block;
    width: 100%;
    padding: 0.2rem 0.75rem;
    box-shadow: inset 0.1rem 0 var(--color-dark-layer-3), inset 0rem 0 var(--color-dark-layer-3);
    transition: box-shadow var(--transition-duration) ease-in-out;
    color: var(--color-text-layer-2);
}

#side-bar .menu-item a:hover {
    box-shadow: inset 0.1rem 0 var(--color-theme-bright), inset 18rem 0 var(--color-dark-layer-3);
}

#side-bar .menu-item.scp-series {
    flex-wrap: wrap;
}

#side-bar .menu-item.scp-series a {
    width: 20%;
    text-align: center;
}

/* 桌面端导航栏 */

#desktop-navbar {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--color-dark-layer-2);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-deco);
    box-shadow: 0px -2px 0px var(--color-dark-layer-3), 0px 13px 25px 24px rgba(0, 0, 0, 0.75);
    animation: nav-fade-in 0s ease-in-out 0.25s forwards;
    opacity: 0;
}

.desktop-navbar-button, button#mobile-toggle-sidebar {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

#desktop-toggle-sidebar, button#mobile-toggle-sidebar {
    z-index: 1000;
    background-image: var(--icon-menu);
    filter: var(--darkmode-filter);
}

#desktop-search {
    background-image: var(--icon-search);
    filter: var(--darkmode-filter);
    background-size: 70%;
}

#desktop-navbar :is(ul, li) {
    list-style-type: none;
}

#desktop-navbar-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 0.75rem;
}

#desktop-navbar-right>ul>li {
    color: var(--color-text-layer-2);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-duration-fast) ease-in-out;
    display: inline-flex;
    height: auto;
    line-height: var(--nav-height);
    padding: 0px 0.25rem;
    top: -0.25rem;
    position: relative;
    flex-direction: column;
    align-items: center;
    user-select: none;
    white-space: nowrap;
}

#desktop-navbar-right>ul>li:hover {
    color: var(--color-text-layer-1);
}

#desktop-navbar-right>ul>li:has(ul.open) {
    color: var(--color-text-layer-1);
}

#desktop-navbar-right>ul>li::after {
    content: "";
    display: inline-block;
    position: relative;
    bottom: 0px;
    width: 0%;
    height: 0.15rem;
    background-color: var(--color-theme-medium);
    transform: translateY(-0.25rem);
    transition: width var(--transition-duration-fast) ease-in-out;
}

#desktop-navbar-right>ul>li:has(ul.open)::after {
    width: 100%;
}

#desktop-navbar-right>ul>li>ul {
    display: grid;
    position: fixed;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    bottom: calc(var(--nav-height) * 1);
    left: 0px;
    background-color: var(--color-background-cover);
    padding: 1rem;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: all var(--transition-duration) ease-in-out;
    transform: translateY(1rem);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    grid-auto-flow: row;
    backdrop-filter: blur(5px);
}

#desktop-navbar-right>ul>li>ul.open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0px);
}

#desktop-navbar-right>ul>li>ul>li {
    display: contents;
}

#desktop-navbar-right>ul>li>ul>li>a {
    color: var(--color-text-layer-2);
    text-decoration: none;
    display: block;
    padding: 0rem 0.5rem 0rem 1rem;
    box-shadow: inset 0.1rem 0px 0px var(--color-dark-layer-3), inset 0rem 0px 0px var(--color-dark-layer-3);
    transition: all var(--transition-duration) ease-in-out;
}

#desktop-navbar-right>ul>li>ul>li>a:hover {
    color: var(--color-text-layer-1);
    background-color: var(--color-dark-layer-3);
    box-shadow: inset 0.1rem 0px 0px var(--color-theme-medium), inset 15rem 0px 0px var(--color-dark-layer-3);
}

#desktop-navbar-right>ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 0.5rem;
    margin: 0;
}

#desktop-navbar-title {
    font-size: 1.35rem;
    line-height: var(--nav-height);
    font-weight: bold;
    color: var(--color-text-layer-2);
    margin-left: 0.25rem;
    transform: translateY(-0.15rem);
    user-select: none;
    white-space: nowrap;
}

#desktop-navbar-title a {
    color: var(--color-text-layer-2);
    text-decoration: none;
}

#desktop-navbar-left>.icon {
    margin-right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    transform: translateY(-0.15rem);
    transition: all var(--transition-duration-fast) ease-in-out;
    filter: var(--darkmode-filter);
}

#desktop-navbar-left>.icon:hover {
    opacity: 0.5;
}

#desktop-navbar-center {
    display: none;
}

#extra-div-1 {
    display: none;
}

@media screen and (max-width: 700px) {
    #desktop-navbar {
        display: none;
    }
}

@media screen and (min-width: 1000px) {

    #desktop-navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    #desktop-navbar-center {
        display: flex;
        justify-content: center;
    }

    #desktop-navbar-logo {
        width: 3.5rem;
        height: 3.5rem;
        background-size: contain;
        background-image: url('logo.svg');
        background-position: center;
        background-repeat: no-repeat;
        transform: translate(0, -1.55rem) scale(2.75);
        z-index: 999;
        filter: drop-shadow(0px 0px 0.5rem #000000);
        pointer-events: none;
    }

    #extra-div-1 {
        display: block;
        position: fixed;
        bottom: calc(var(--nav-height) * 0.55);
        left: 0px;
        width: 100%;
        height: var(--nav-height);
        background-image: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iODExIiBoZWlnaHQ9IjEwMyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgb3ZlcmZsb3c9ImhpZGRlbiI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE3OTUgLTE4ODYpIj48cGF0aCBkPSJNMTgyNy4xOSAxODg4LjUgMjU3My44MSAxODg4LjUgMjYwMy41IDE5MTguMTkgMjYwMy41IDE5ODYuNSAyNjAzLjUgMTk4Ni41IDE3OTcuNSAxOTg2LjUgMTc5Ny41IDE5ODYuNSAxNzk3LjUgMTkxOC4xOVoiIHN0cm9rZT0iIzQwNDA0MCIgc3Ryb2tlLXdpZHRoPSI0LjU4MzMzIiBzdHJva2UtbWl0ZXJsaW1pdD0iOCIgZmlsbD0iIzBEMEQwRCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        transform: scale(0.55);
        z-index: 999;
        opacity: 0.75;
        animation: nav-fade-in-2 0s ease-in-out 0.5s forwards;
        opacity: 0;
    }

}

/* 移动端导航栏 */

div#mobile-navbar {
    display: none;
}

@media screen and (max-width: 700px) {
    div#mobile-navbar {
        display: flex !important;
        animation: topnav-fade-in 0s ease-in-out 0.25s forwards;
        opacity: 0;
    }

    #side-bar {
        z-index: 1006;
        top: var(--nav-height);
    }

    #side-bar.open~div#navbar>div#mobile-navbar div#mobile-navbar-list {
        transform: translateX(var(--sidebar-width));
    }
}

div#mobile-navbar {
    position: fixed;
    z-index: 1005;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: var(--nav-height);
    background-color: var(--color-background-cover);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 10px 0.5rem #0000006c;
}

button#mobile-toggle-sidebar {
    width: 3rem;
    height: 2rem;
}

div#mobile-navbar>ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: space-around;
    margin-top: 0.5rem;
}

div#mobile-navbar>ul>li {
    list-style-type: none;
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: normal;
    color: var(--color-text-layer-2);
    margin-left: 0.25rem;
    transform: translateY(-0.15rem);
    user-select: none;
    white-space: nowrap;
    transition: all var(--transition-duration-fast) ease-in-out;
}

div#mobile-navbar>ul>li.selected {
    color: var(--color-text-layer-1);
    font-weight: bold;
}

div#mobile-navbar>ul>li>ul {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-duration-fast) ease-in-out;
}

div#mobile-navbar-list {
    position: fixed;
    z-index: -1;
    top: var(--nav-height);
    left: 0px;
    width: 100vw;
    height: auto;
    max-height: 60vh;
    overflow-y: auto;
    background-color: var(--color-background-cover);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    align-items: center;
    padding: 0;
    margin: 0;
    justify-content: space-around;
    backdrop-filter: blur(0.5rem);
    transition: all var(--transition-duration) ease-in-out;
}

div#mobile-navbar-list li {
    display: contents;
}

div#mobile-navbar-list li a {
    list-style-type: none;
    font-size: 0.85rem;
    font-weight: normal;
    user-select: none;
    color: var(--color-light-layer-3);
    background-color: #2b2b2b32;
    width: 100%;
    height: 100%;
    display: block;
    box-shadow: inset 0.15rem 0 var(--color-dark-layer-3), inset 0rem 0 var(--color-dark-layer-3);
    padding: 0.55rem 1.25rem;
    transition: all var(--transition-duration-fast) ease-in-out;
}

div#mobile-navbar-list li a:hover {
    box-shadow: inset 0.15rem 0 var(--color-theme-bright), inset 11rem 0 #7c68ee1b;
    color: var(--color-light-layer-1);
    font-weight: bold;
}

div#mobile-navbar-list ul, div#mobile-navbar-list>ul>li {
    list-style: none;
    display: contents;
}

div#mobile-navbar-list>ul>li>ul {
    display: none;
    opacity: 0;
    pointer-events: none;
}

div#mobile-navbar-list>ul>li.selected>ul {
    display: contents;
    opacity: 1;
    pointer-events: auto;
}

div#mobile-navbar-list>ul>li>ul>li a {
    opacity: 0;
}

div#mobile-navbar-list>ul>li>ul>li a {
    animation: topnav-item-fade-in 0.15s ease-in-out forwards 1s;
}

.fadeout {
    animation: topnav-item-fade-in 0.15s ease-in-out forwards reverse !important;
}

@keyframes topnav-item-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-0.15rem);
        pointer-events: none;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}



/* 背景排版 */

/* 页面布局 */

section.fullscreen {
    height: 100vh;
}

section.page-flow {
    height: auto;
    display: grid;
    grid-template-columns:  [column-1-start] minmax(0,1fr)
                            [column-2-start] minmax(0,1fr)
                            [column-3-start] minmax(0,1fr)
                            [column-4-start] minmax(0,1fr)
                            [column-5-start] minmax(0,1fr)
                            [column-5-end] minmax(0,1fr)
                            [column-4-end] minmax(0,1fr)
                            [column-3-end] minmax(0,1fr)
                            [column-2-end] minmax(0,1fr)
                            [column-1-end] 0;
    column-gap: 0.5rem;
}

@media screen and (max-width: 700px) {
    section.page-flow {
        height: auto;
        display: grid;
        grid-template-columns:  [column-1-start] 0
                                [column-2-start] 0.75rem
                                [column-3-start] minmax(0,1fr)
                                [column-4-start] minmax(0,1fr)
                                [column-5-start] minmax(0,1fr)
                                [column-5-end] minmax(0,1fr)
                                [column-4-end] minmax(0,1fr)
                                [column-3-end] minmax(0,1fr)
                                [column-2-end] 0.75rem
                                [column-1-end] 0;
        column-gap: 0.5rem;
    }

    section.page-flow div {
        grid-column-start: column-3-start !important;
        grid-column-end: column-2-end !important;
    }
}

section.page-flow div {
    grid-column-start: column-2-start;
    grid-column-end: column-2-end;
}

section.page-flow div.s-1 {grid-column-start: column-1-start;}
section.page-flow div.s-2 {grid-column-start: column-2-start;}
section.page-flow div.s-3 {grid-column-start: column-3-start;}
section.page-flow div.s-4 {grid-column-start: column-4-start;}
section.page-flow div.s-5 {grid-column-start: column-5-start;}
section.page-flow div.s-6 {grid-column-start: column-5-end;}
section.page-flow div.s-7 {grid-column-start: column-4-end;}
section.page-flow div.s-8 {grid-column-start: column-3-end;}
section.page-flow div.s-9 {grid-column-start: column-2-end;}
section.page-flow div.s-10 {grid-column-start: column-1-end;}

section.page-flow div.e-1 {grid-column-end: column-1-start;}
section.page-flow div.e-2 {grid-column-end: column-2-start;}
section.page-flow div.e-3 {grid-column-end: column-3-start;}
section.page-flow div.e-4 {grid-column-end: column-4-start;}
section.page-flow div.e-5 {grid-column-end: column-5-start;}
section.page-flow div.e-6 {grid-column-end: column-5-end;}
section.page-flow div.e-7 {grid-column-end: column-4-end;}
section.page-flow div.e-8 {grid-column-end: column-3-end;}
section.page-flow div.e-9 {grid-column-end: column-2-end;}
section.page-flow div.e-10 {grid-column-end: column-1-end;}


div.page-content.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 页面元素 */

div.page-content p {
    font-size: 1rem;
    line-height: var(--line-height);
    margin: 1rem 0;
}

.monospace {
    font-family: var(--font-mono);
}

.decofont {
    font-family: var(--font-deco);
}

div.modal {
    background-color: var(--color-dark-overlay);
    border: 0.1rem solid var(--color-dark-layer-3);
    z-index: 10;
    margin: 3rem auto;
    width: min(40rem, 100%);
}

div.modal div.modal-heading p:first-child {
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.75rem;
    padding: 0.1rem 0.2rem;
    border: 0.1rem solid var(--color-dark-layer-4);
    color: var(--color-text-layer-2);
    background-color: var(--color-dark-layer-3);
}

div.modal>p {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    color: var(--color-light-layer-2);
}

div.modal>em p {
    font-style: italic;
    font-size: 1rem;
    padding: 0.5rem 2rem;
    color: var(--color-light-layer-3);
}

div.modal.rec div.modal-heading p:nth-child(2) {
    background-color: var(--color-dark-layer-2);
    padding: 0.5rem 1rem;
}

div.modal.rec div.modal-heading p:nth-child(2) {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

div.modal.rec div.modal-heading :is(span.file-type, span.file-number, span.file-date) {
    background-color: var(--color-dark-layer-2);
    padding: 0.5rem 0.5rem;
    border: 0.1rem solid var(--color-dark-layer-3);
    width: calc(50% - 1rem);
    margin: 0 0.5rem;
    display: inline-flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    color: var(--color-text-layer-2);
    align-items: center;
}

div.modal.rec div.modal-heading p:nth-child(2) span.file-date {
    width: 100%;
    margin-top: 0.75rem;
}

span:is(span.file-type, span.file-number, span.file-date) b {
    text-align: right;
}

span.permission-level {
    font-size: 0.75rem;
    display: inline-block;
    background-color: var(--color-dark-layer-4);
    padding: 0.25rem 0.5rem;
    margin: 0 0.5rem;
    line-height: 1.35rem;
    border-radius: 0.25rem;
}

@media screen and (max-width: 800px) {
    div.modal.rec div.modal-heading p:nth-child(2) {
        flex-wrap: wrap;
    }
    div.modal.rec div.modal-heading p:nth-child(2) :is(span.file-type, span.file-number, span.file-date) {
        margin: 0.5rem 0;
        width: 100%;
    }
}

div.modal>p.name {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0.15rem 0;
    display: flex;
    align-items: center;
    padding: 0.15rem;
    color: var(--color-light-layer-1);
}

p.name::before, 
p.name::after {
    content: "";
    flex: 1 1 auto;
    border-top: 0.1rem solid var(--color-dark-layer-4);
    margin: 0 0.5rem;
}

p.name::before {
    flex: 0.1 1 auto;
}

div.s1-sp1 {
    margin: 5rem auto;
    max-width: 40rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-dark-layer-4);
    font-style: italic;
}

div.tidal-lines {
    margin: 5rem auto;
    max-width: 40rem;
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-layer-2);
}

div.log-lines {
    margin: 5rem auto;
    max-width: 40rem;
    text-align: left;
    font-size: 0.95rem;
    color: var(--color-text-layer-1);
    font-family: var(--font-mono);
    line-height: 2rem;
}

.modal span.ruby {
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    line-height: 1rem;
    margin-bottom: -0.5rem;
    transform: translateY(-0.6rem);
    margin-top: 0.9rem;
}

.modal span.rt {
    font-size: 0.75rem;
}

/* 底栏 */

#footer {
    background-color: var(--color-dark-layer-2);
    color: var(--color-text-layer-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    bottom: var(--nav-height);
    position: relative;
    padding-bottom: 6rem;
    margin-top: 3rem;
}

#footer-options {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

#footer-options div a:not(:last-child) {
    display: inline-block;
    margin-right: 0.5rem;
    padding-right: 0.5rem;
    box-shadow: 0.1rem 0 var(--color-dark-layer-3), inset 0rem 0rem var(--color-dark-layer-3);
}

#footer-content {
    width: 100%;
}

#footer-content div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

#footer-content div a {
    display: inline-block;
    padding: 1rem 1rem;
    width: 25%;
    text-align: center;
    color: var(--color-text-layer-1);
    font-weight: bold;
    box-shadow: inset 0 -0.15rem var(--color-dark-layer-3), inset 0rem 0rem var(--color-dark-layer-3);
    transition: box-shadow var(--transition-duration) ease-in-out;
    cursor: pointer;
}

#footer-content div a:hover {
    box-shadow: inset 0 -0.15rem var(--color-theme-medium), inset 0rem -5rem var(--color-dark-layer-3);
}

@media screen and (max-width: 800px) {
    div#license {
    text-align: center;
    font-size: 0.75rem;
    }

    #footer-content div a {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.75rem 0;
        white-space: nowrap;
    }
}

/* 杂项 */

::selection {
    background-color: var(--color-dark-layer-3);
    color: var(--color-text-layer-1);
}

::-webkit-scrollbar {
    width: 0.25rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background-color: var(--color-dark-layer-3);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-light-layer-4);
}

/* 动画 */

@keyframes nav-fade-in {
    0% {
        opacity: 0;
        transform: translateY(3rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nav-fade-in-2 {
    0% {
        opacity: 0;
        transform: translateY(3rem) scale(0.55);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(0.55);
    }
}

@keyframes nav-items-fade-in {
    0% {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes topnav-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-3rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

div#mobile-navbar {
    display: none;
}


/* Intro */

.gt-intro {
    background-image: url("cxyc_1_textbg.svg"), linear-gradient(180deg, var(--color-dark-layer-1) 0%, #00000039 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gt-intro::after {
    content: "滚动页面以继续阅读";
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    transform: translateY(10rem);
    color: var(--color-text-layer-2);
}

.gt-intro-logo {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gt-intro-logo img {
    width: min(100%, 30rem);
    height: auto;
}

.gt-intro-logo span.author {
    font-size: 1rem;
    letter-spacing: 0.45rem;
    margin-left: 1rem;
}

/* Overlay */

div#overlay {
    user-select: none;
    pointer-events: none;
}

div#overlay-number {
    position: fixed;
    top: calc(50vh - 2.5rem);
    left: 2rem;
    text-align: right;
    width: 8rem;
    margin-left: 2.5rem;
}

div#overlay-number span {
    display: block;
    color: var(--color-light-layer-4);
    font-size: 1rem;
    letter-spacing: -0.1rem;
    width: 8rem;
}

div#overlay-number span#height-number {
    font-size: 2rem;
    font-family: var(--font-deco);
    font-weight: bolder;
    letter-spacing: -0.15rem;
    margin-top: -1rem;
    color: var(--color-light-layer-2);
}

div#overlay-chapter {
    position: fixed;
    top: 1.25rem;
    left: 0;
    margin-left: 2.5rem;
}

div#overlay-chapter span.monospace {
    font-size: 1rem;
    letter-spacing: -0.1rem;
    color: var(--color-light-layer-4);
}

div#overlay-chapter span#chapter-name {
    font-size: 1rem;
    font-family: var(--font-deco);
    font-weight: bolder;
    letter-spacing: -0.05rem;
    margin-top: -1rem;
    color: var(--color-text-layer-2);
}

div#overlay-label {
    position: fixed;
    top: 1.25rem;
    right: 0;
    margin-right: 2.5rem;
}

div#overlay-label span.decofont {
    font-size: 1rem;
    letter-spacing: -0.05rem;
    color: var(--color-light-layer-4);
    font-weight: bolder;
}

div#overlay-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    background: linear-gradient(180deg, #00000052 0%, transparent 100%);
    z-index: 30;
    pointer-events: none;
}

@media screen and (max-width: 800px) {
    div#overlay-number {
        top: 3.25rem;
        left: 2rem;
        text-align: left;
        width: auto;
        margin-left: 0;
        display: inline-block;
        z-index: 99;
        filter: opacity(0.5);
    }

    div#overlay-number span.monospace {
        display: inline;
    }

    div#overlay-number span.monospace::after {
        content: " / ";
    }

    div#overlay-number span#height-number {
        font-size: 1.25rem;
        margin-top: -0.5rem;
        color: var(--color-light-layer-3);
        display: inline;
    }

    div#overlay-chapter {
        top: 3.25rem;
        right: 2rem;
        text-align: right;
        width: auto;
        margin-right: 0;
    }

    div#overlay-chapter span#chapter-name {
        font-size: 1.25rem;
        margin-top: -0.5rem;
        color: var(--color-light-layer-3);
    }

    div#overlay-label {
        top: calc(100vh - 4rem);
        width: 100%;
        left: 0;
        text-align: center;
        margin-left: 0;
        height: 1rem;
        filter: opacity(0.4);
        color: #fff;
    }

    div#overlay-label span.decofont {
        font-size: 1.25rem;
        color: var(--color-dark-layer-4);
    }
}

/* 背景 */

div#content-container {
    background-image: url("cxyc_general_bg_1.svg"), url("cxyc_general_bg_ruler.svg"), url("cxyc_general_bg_2.svg"), url("cxyc_general_bg_3.svg");
    background-size: 95%, 0.75rem, 100vw, 100vh;
    background-position: center center, calc(50% - 1.2rem) center, 25vw 15vh, -25vw -25vh;
    background-repeat: no-repeat, repeat-y, no-repeat, no-repeat;
    background-attachment: fixed, scroll, fixed, fixed;
}

section.dark {
    background-image: none;
    background-color: var(--color-dark-layer-1);
}

section.dark::before, 
section.dark+section::before {
    content: "";
    position: relative;
    width: 100vw;
    height: 6rem;
    background-image: linear-gradient(180deg, var(--color-dark-layer-1) 0%, transparent 100%);
    z-index: 0;
}

section.dark::before {
    transform: translateY(-6rem) rotate(180deg);
}

/* 标题 */

section.title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-dark-layer-1);
}

section.title div.title {
    text-align: left;
    width: 80vw;
    font-family: var(--font-deco);
}

section.title div.title p {
    font-size: 2rem;
    font-weight: bolder;
    letter-spacing: -0.1rem;
    margin-top: -1rem;
    color: var(--color-light-layer-2);
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform 1.5s ease, opacity 1s ease;
    transition-delay: 0s;
}

section.title div.title h1 span {
    display: block;
    font-weight: bolder;
}

section.title div.title h1 span.rt {
    font-size: 4rem;
    font-weight: bolder;
    letter-spacing: -0.15rem;
    margin-top: -3rem;
    color: var(--color-dark-layer-3);
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform 1.5s ease, opacity 1s ease;
    transition-delay: 0.2s;
}

section.title div.title h1 span.ruby {
    font-size: 7rem;
    font-weight: bolder;
    letter-spacing: -0.25rem;
    margin-top: -4rem;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(180deg, var(--color-light-layer-2) 0%, transparent 100%);
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform 1.5s ease, opacity 1s ease;
    transition-delay: 0.4s;
}

section.title>p {
    width: 80vw;
    text-align: left;
    font-size: 1rem;
    font-weight: lighter;
    letter-spacing: -0.1rem;
    margin-top: -1rem;
    color: var(--color-light-layer-2);
    font-style: italic;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform 0.75s ease, opacity 0.75s ease;
}

section.title>p:first-child {
    transition-delay: 0.6s;
}

section.title>p:nth-child(2) {
    transition-delay: 0.7s;
}

section.title>p:nth-child(3) {
    transition-delay: 0.8s;
}

section.title>p.quote-by {
    transition-delay: 1s;
    transform: translateX(4rem);
}

section.title>p.quote-by {
    margin-top: 1rem;
    margin-left: 2rem;
    font-size: 0.8rem;
    font-weight: thin;
    letter-spacing: -0.1rem;
    color: var(--color-light-layer-3);
    font-style: italic;
}

section.section-fade-in div.title p, 
section.section-fade-in div.title h1 span.rt, 
section.section-fade-in div.title h1 span.ruby, 
section.section-fade-in>p {
    transform: translateX(0rem);
    opacity: 1;
}

/* overlay-number animation */

@media screen and (max-width: 1100px) and (min-width: 800px) {
    div#overlay-number:not(.final-record) {
        scale: 0.75;
        margin-left: 0rem;
    }
}

@keyframes overlay-number-pos1 {
    0% {
        left: 2rem;
        right: unset;
        text-align: right;
        transform: translate(0, 0);
        opacity: 1;
    }
    40% {
        left: 2rem;
        right: unset;
        text-align: right;
        transform: translate(-4rem, 0);
        opacity: 0;
    }
    41% {
        left: unset;
        right: 2rem;
        text-align: left;
        transform: translate(-4rem, 0);
        opacity: 0;
    }
    100% {
        left: unset;
        right: 2rem;
        text-align: left;
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes overlay-number-pos1-reverse {
    0% {
        left: unset;
        right: 2rem;
        text-align: left;
        transform: translate(0, 0);
        opacity: 1;
    }
    40% {
        left: unset;
        right: 2rem;
        text-align: left;
        transform: translate(4rem, 0);
        opacity: 0;
    }
    41% {
        left: 2rem;
        right: unset;
        text-align: right;
        transform: translate(4rem, 0);
        opacity: 0;
    }
    100% {
        left: 2rem;
        right: unset;
        text-align: right;
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes overlay-number-fade-in {
    0% {
        transform: translate(-2rem, 0);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes overlay-number-fade-out {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-2rem, 0);
        opacity: 0;
    }
}

@keyframes overlay-number-fade-in-2 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes overlay-number-fade-out-2 {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
}



/* Final Record */

div#overlay-number.final-record {
    text-align: center;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    animation: overlay-number-fade-in-2 0.75s ease forwards;
    filter: opacity(0.25);
}

div#overlay-number.final-record span.monospace {
    position: fixed;
    text-transform: uppercase;
    width: 100%;
    top: 12vh;
    font-size: 18vh;
    color: var(--color-light-layer-3);
    font-family: var(--font-deco);
    animation: fr-overlay-fade-in 0.75s ease;
    text-align: center;
}

div#overlay-number.final-record span#height-number {
    width: 100%;
    line-height: 100vh;
    font-size: 33vh;
    position: fixed;
    top: 4vh;
    opacity: 0.85;
    text-shadow: 0 0 50px #ffffffb0;
    animation: fr-overlay-fade-in 1.25s ease;
    text-align: center;
}

div#overlay-number.final-record span#height-number::after {
    content: 'METERS';
    position: fixed;
    top: 70vh;
    right: 12vh;
    font-size: 10vh;
    line-height: 10vh;
    color: var(--color-light-layer-4);
}

@media screen and (max-width: 800px) {
    div#overlay-number.final-record {
        display: block;
        width: 100vw;
        position: fixed;
        animation: overlay-number-fade-in-2 0.75s ease forwards !important;
    }

    div#overlay-number.final-record span.monospace {
        font-size: 5rem;
        width: 100vw;
        left: 0;
        top: 29vh;
    }

    div#overlay-number.final-record span.monospace::after {
        content: '';
    }

    div#overlay-number.final-record span#height-number {
        font-size: 7rem;
        left: 0;
    }

    div#overlay-number.final-record span#height-number::after {
        top: 63vh;
    }
}

section#final-record {
    margin-top: 25vh;
    padding-top: 45vh;
    background-image: linear-gradient(0deg, transparent 0%, #5c0000c4 15%, #5c0000c4 85%, transparent 100%);
}

section#height-zero {
    height: 100vh;
    background-image: linear-gradient(180deg, #5c0000c4 0%, #FFFFFF 100%);
    background-attachment: scroll;
}

section#height-zero-2 {
    height: 200vh;
    background-image: linear-gradient(180deg, #FFFFFF 0%, #000000 100%);
    background-attachment: local;
}

section#final-record .modal.rec {
    background-color: #000000b3;
}

@keyframes fr-overlay-fade-in {
    0% {
        transform: translate(0, 15vh);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes overlay-number-fade-out-end {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
}

div#overlay-number.final-record.end span.monospace {
    color: #000000;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
}

div#overlay-number.final-record.end span#height-number {
    color: #000000;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
}

div#overlay-number.final-record.end span#height-number::after {
    color: #000000;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
}

div#overlay-number.final-record.end.end-fade-out {
    animation: overlay-number-fade-out-end 2s ease forwards;
}

@media screen and (max-width: 800px) {
    div#overlay-number.final-record.end.end-fade-out {
        animation: overlay-number-fade-out-end 2s ease forwards !important;
    }
}

section.fullscreen.gaze-into {
    background: #000;
}

section.gaze-into {
    --color-dark-layer-1: #ffffff;
    --color-dark-layer-2: #ffffff;
    --color-dark-layer-3: #eeeeee;
    --color-dark-layer-4: #d8d8d8;
    --color-background-cover: rgba(0, 0, 0, 0.85);
    --color-dark-overlay: rgb(255 255 255 / 95%);
    --color-light-layer-1: #000000;
    --color-light-layer-2: #1f1f1f;
    --color-light-layer-3: #2e2e2e;
    --color-light-layer-4: #4e4e4e;
    background-image: linear-gradient(180deg, #000000 0rem, #EEEEEE 50%);
    background-attachment: local;
}

p.data-deleted {
    grid-column-start: column-1-start;
    grid-column-end: column-1-end;
    text-align: center;
    font-size: 3rem;
    color: #000000;
    background: #400000;
}

.monolog {
    background: #000;
    padding: 1rem 1rem;
    color: #d7d7d7;
    font-family: var(--font-mono);
}

div.endscreen>p {
    font-size: 4rem;
    font-weight: bold;
}

div.endscreen {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

div.endscreen img {
    width: 20rem;
}

section#end {
    background: #000;
    height: 100vh;
}


section.fullscreen.gaze-into .illustration p {
    color: #ccc;
    text-align: center;
}
section.fullscreen.gaze-into .illustration {
    background: #000;
}
section.fullscreen.gaze-into {
    background-image: unset;
    background-color: #000;
}
section.fullscreen.gaze-into .illustration img {
    margin-top: 0;
}
section.fullscreen:has(.illustration) {
    height: auto;
}

.illustration {
    background: var(--color-dark-layer-1);
    padding-bottom: 8rem;
}

.illustration>p {
    padding: 1rem 2rem;
    font-size: 0.85rem;
    color: var(--color-light-layer-3);
    font-style: italic;
}

.illustration img {
    width: 100%;
    margin: 10rem auto 0rem auto;
}

@media screen and (max-width: 800px) {
    .illustration img:hover {
        transform: scale(1.3) rotate(90deg);
        position: fixed;
        top: 5rem;
        z-index: 100;
        box-shadow: 0px 0px 50px 30px #000000bf;
    }
}

div.modal .illustration {
    margin: 3rem auto;
    padding: 0;
    grid-column-start: column-1-start;
    grid-column-end: column-1-end;
    border-bottom: solid 2px var(--color-dark-layer-4);
    width: 95%;
}

div.modal .illustration img {
    margin: 0 auto;
}

div.modal .illustration p {
    text-align: center;
}

section {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

div#source-code {
    background: #000;
    padding: 1rem 2rem;
    margin-top: -4rem;
}

div#source-code p {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

div#source-code pre {
    font-size: 0.8rem;
    color: #fff;
    font-family: var(--font-mono);
    overflow-x: scroll;
}