@font-face {
    font-family: title;
    src: url(/asset/title.woff2);
}
@font-face {
    font-family: en;
    src: url(/asset/bak.woff2);
}
/* @font-face {
    font-family: sans;
    src: url(/asset/ssans.woff2);
} */
@font-face {
    font-family: icon;
    src: url(/asset/iconfont.woff2);
}

@keyframes fade {
    0% { opacity: 0; }
}
@keyframes fade-out {
    100% { opacity: 0; }
}
@keyframes slide-fade {
    0% { opacity: 0; transform: translateY(30px); }
}

@keyframes slide-in {
    0% { transform: translateY(100%); }
}
@keyframes slide-out {
    100% { transform: translateY(-100%); }
}

ico {
    font-family: icon;
    margin-right: 3px;
}
a {
    color: var(--link);
    text-decoration: none;
}

but {
    background-image: linear-gradient(var(--txopa) 0% 40%, var(--sublink) 40% 60%, var(--link) 60% 100%);
    background-size: 100% 300%;
    background-position-y: 0%;
    border-radius: 3px;
    line-height: 1;
    padding: 5px 10px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s, background-position 0.3s, color 0.7s;
    text-align: center;
    display: flex;
    position: relative;
}
but:hover, but.act {
    opacity: 1;
}
but.act {
    color: var(--bg);
    background-position-y: 100%;
}
but > ico {
    background-color: var(--txopa);
    width: 50px;
    margin: 0;
    border-radius: 4px;
    color: var(--link);
    transition: color 0.5s;
    font-size: 24px;
}

img {
    -webkit-user-drag: none;
}

input, textarea {
    resize: none;
    border: none;
    outline: none;
    padding: 10px 15px;
    border-radius: 3px;
    line-height: 20px;
    font-size: 15px;
    background-color: #fff3;
    font-family: inherit;
    transition: background 0.1s, box-shadow 0.1s;
}
input:hover, textarea:hover {
    background-color: #fff5;
}
input:focus, textarea:focus {
    background-color: #fff9;
    box-shadow: 0 0 0 2px #fff;
}

::selection {
    background-color: var(--link);
    color: #fff;
}

body {
    --link: #fff;
    --sublink: #999a;
    --tx: #fff;
    --bg: #1E1E1E;
    --subbg: #333d;
    --txopa: #fff4;
    margin: 0;
    background-color: var(--bg);
    color: var(--tx);
    font-family: sans, "Microsoft YaHei", sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

body > header {
    z-index: 90;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2px);
    height: 4vw;
    display: flex;
    border-right: 2px solid var(--link);
    /* padding-right: 4vw; */
}
body > header > h2 {
    font-size: 8vw;
    line-height: 8vw;
    margin: 3px 15px;
    flex-grow: 1;
    flex-shrink: 0;
    font-family: title, sans-serif;
    letter-spacing: -5px;
    transition: font-size 0.2s, line-height 0.2s;
    pointer-events: none;
}
body > header > h2::after {
    content: "©";
    font-size: 2.2vw;
    vertical-align: bottom;
    font-weight: normal;
    display: inline-block;
    transform: translate(5px, -30px);
    transition: transform 0.2s, font-size 0.2s;
}
body > header.hid > h2 {
    font-size: 2vw;
    line-height: 2.3vw;
}
body > header.hid > h2::after {
    transform: translate(5px, -7px);
    font-size: 1vw;
}
body > header > inf {
    line-height: 1.2vw;
    font-size: 1.2vw;
    margin: 1.5vw 0.6vw 0 0.6vw;
    letter-spacing: 1px;
    position: relative;
    cursor: pointer;
    font-weight: bold;
    transition: text-shadow 0.3s;
    display: flex;
    text-align: center;
    color: #fff;
    width: 4vw;
}
body > header > inf:hover, body > header > inf.act {
    text-shadow: 0 0 3px #0008, 0 0 12px #fff9;
}
body > header > inf > su {
    position: absolute;
    left: -4.5vw;
    bottom: -2vw;
    height: 2vw;
    line-height: 2vw;
    border-radius: 1vw;
    background-color: #1118;
    backdrop-filter: blur(10px);
    display: flex;
    font-size: 0.9vw;
    text-shadow: none;
    color: #fff;
    transition: box-shadow 0.5s, transform 0.6s, opacity 0.5s;
    overflow: hidden;
    white-space: nowrap;
    transform: translateY(3px);
    opacity: 0;
}
body > header > inf[big]:hover > su {
    transform: translateY(0);
    box-shadow: 0 0 0 2px #fff8;
    opacity: 1;
    pointer-events: auto;
}
body > header > inf > su > inf {
    width: 4vw;
    transition: background 0.5s, oolor 0.3s;
}
body > header > inf > su > inf:hover {
    background-color: #fff;
    color: #222;
}
body > header > but {
    position: absolute;
    top: 1.3vw;
    right: 1vw;
    font-size: 2vw;
    line-height: 1.8vw;
    font-family: icon;
    padding: 0 0.8vw;
}
body > header::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 8px;
    background-color: var(--txopa);
    opacity: 0.2;
}

body > main, body > main > div {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@keyframes global-nav-item {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        transform: translateY(-2px);
    }
}
body > nav {
    z-index: 89;
    position: absolute;
    right: 0; top: 0;
    height: 100%;
    width: 500px;
    background-color: var(--subbg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(20px);
    animation: fade 0.2s;
    border-left: 2px solid #fff5;
}
body > nav > div {
    margin: 0px 30px 20px 30px;
    width: 400px;
    padding: 20px;
    background-image: linear-gradient(90deg, var(--link) 0 40%, var(--sublink) 40% 60%, var(--bg) 60% 100%);
    background-size: 300% 100%;
    background-position: 100% 0%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: background-position 0.3s, color 0.7s;
    animation: global-nav-item 0.5s backwards;
}
body > nav > div:hover {
    color: var(--bg);
    background-position: 0% 0%;
}
body > nav > div > h2 {
    margin: 0;
    font-size: 30px;
    line-height: 40px;
}
body > nav > div > p {
    font-size: 12px;
    line-height: 20px;
    opacity: 0.5;
    margin: 0;
    font-family: en, sans-serif;
    letter-spacing: 1px;
}
body > nav > div > ico {
    position: absolute;
    font-size: 70px;
    line-height: 100px;
    right: 10px;
    top: 0px;
    opacity: 0.3;
    transition: font-size 0.3s, top 0.2s;
}
body > nav > div:hover > ico[big] {
    font-size: 150px;
    top: 60px;
}
body > nav > div > ls {
    display: block;
    font-size: 20px;
    line-height: 32px;
    height: 0;
    transition: height 0.2s, padding 0.5s;
    overflow: hidden;
    position: relative;
    font-weight: bold;
}
body > nav > div > ls::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 80px;
    height: 1px;
    background-color: #fff4;
}
body > nav > div:hover > ls {
    padding-top: 15px;
    height: 105px;
}
body > nav > div > ls > div {
    display: flex;
    background-image: linear-gradient(90deg, #fff 0 50%, #fff0 50% 100%);
    background-size: 200% 100%;
    transition: background-position 0.3s;
    background-position-x: 100%;
    width: 160px;
    border-radius: 3px;
    margin-bottom: 3px;
}
body > nav > div > ls > div:hover {
    background-position-x: 0%;
}
body > nav > div > ls > div::before {
    content: "\e844";
    font-family: icon;
    width: 0;
    transition: width 0.4s;
    overflow: hidden;
    text-align: center;
}
body > nav > div > ls > div:hover:before {
    width: 30px;
}

@keyframes global-load {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    30%, 80% {
        transform: translateY(0px);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}
body > load {
    z-index: 100;
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slide-in 0.2s;
}
body > load > mao {
    display: flex;
    overflow: hidden;
    font-size: 90px;
    font-family: en, sans-serif;
    font-weight: bold;
}
body > load > mao > c {
    animation: global-load 2s backwards infinite;
}
body > load::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    bottom: 30px;
    background-color: var(--sublink);
}

body > tips {
    z-index: 100;
    position: fixed;
    left: 0; top: 0;
    pointer-events: none;
}
@keyframes global-tip {
    0% { opacity: 0; transform: translateY(20px); }
    20%, 80% { opacity: 1; transform: translateY(0px); }
    100% { opacity: 0; transform: translateY(-20px); }
}
body > tips > div {
    position: absolute;
    left: calc(50% - 200px);
    width: max-content;
    padding: 0 20px;
    background-color: #0005;
    box-shadow: 0 0 0 2px #fff8;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    animation: global-tip 2s;
    font-size: 20px;
    line-height: 40px;
    font-weight: bold;
}