@charset "UTF-8";

/* 全局样式 */
html *,
html *::before,
html *::after {
    box-sizing: border-box;
}

:root,
:root.scheme-light {
    --header-selection-color: #0066ff;
    --header-bg-color: #078360;
    --header-text-color: #fdfdfd;
    --header-border-color: #b9d7cd;
    --header-placeholder-color: #8bccc0;
    --header-focus-color: #ffffff;
    --header-drop-bg-color: #fdfdfd;
    --header-drop-active-color: #056e51;
    --header-drop-text-color: #111111;
    --header-drop-border-color: #aaaaaa;
    --header-drop-gap-color: #cccccc;
    --header-drop-hover-color: #effcef;
    --header-drop-focus-color: #000000;
    --header-info-color: #fef9ff;
    --header-login-color: #fffdc0;
    --header-login-shadow: rgba(0, 0, 0, 0.15);
    --header-dialog-focus-color: #000000;
    --header-search-bg-color: #cccccc;
    --header-search-border-color: #078360;
    --header-search-text-color: #111111;
    --header-search-input-color: #fefefe;
    --header-search-placeholder-color: #666666;
    --header-search-button-color: #eeeeee;
    --header-search-filter: invert(90%);
    --header-scheme-text-color: #222222;
    --header-scheme-tips-color: #595959;
    --header-scheme-bg-color: #eeeeee;
    --header-scheme-accent-color: #078360;
    --header-scheme-title-color: #fbfbfb;
    --header-scheme-shadow-color: #0b883f;
    --header-scheme-fieldset-color: #888888;
    --header-scheme-label-bg-color: #f8f8f8;
    --header-scheme-label-border-color: #aaaaaa;
    --header-scheme-label-hover-bg-color: #f3fff4;
    --header-image-filter: none;
    --main-bg-color: #fafafa;
    --main-selection-color: #00966b;
    --footer-bg-color: #eeeeee;
    --footer-border-color: #a2b5b0;
    --footer-link-color: #606060;
    --footer-selection-color: #2ab18b;
    --ver-dialog-bg-color: #ffffff;
    --ver-dialog-text-color: #111111;
    --ver-dialog-muted-color: #333333;
    --ver-dialog-accent-color: #222222;
    --ver-dialog-accent-text-color: #ffffff;
    --ver-dialog-border-color: #dde4e0;
    --ver-dialog-focus-color: #078e67;
    --ver-dialog-shadow-color: rgba(15, 40, 30, 0.28);
    --ver-dialog-backdrop-color: rgba(20, 30, 25, 0.45);
}

:root.scheme-dark {
    --header-selection-color: #0066ff;
    --header-bg-color: #2d2d2d;
    --header-text-color: #e4e4e7;
    --header-border-color: #5a605d;
    --header-placeholder-color: #5f6261;
    --header-focus-color: #eeeeee;
    --header-drop-bg-color: #252525;
    --header-drop-active-color: #0fb774;
    --header-drop-text-color: #e4e4e7;
    --header-drop-border-color: #6f726f;
    --header-drop-gap-color: #515453;
    --header-drop-hover-color: #2c2d2c;
    --header-drop-focus-color: #eeeeee;
    --header-info-color: #d4d4d8;
    --header-login-color: #fde68a;
    --header-login-shadow: rgba(80, 80, 80, 0.4);
    --header-dialog-focus-color: #eeeeee;
    --header-search-bg-color: #2a2c2b;
    --header-search-border-color: #696f6c;
    --header-search-text-color: #d1d7d3;
    --header-search-input-color: #171817;
    --header-search-placeholder-color: #768078;
    --header-search-button-color: #272929;
    --header-search-filter: invert(85%);
    --header-scheme-text-color: #cfcfcf;
    --header-scheme-tips-color: #a1a1aa;
    --header-scheme-bg-color: #2d2e2d;
    --header-scheme-accent-color: #969996;
    --header-scheme-title-color: #0a0a0a;
    --header-scheme-shadow-color: #282a2a;
    --header-scheme-fieldset-color: #49524e;
    --header-scheme-label-bg-color: #212321;
    --header-scheme-label-border-color: #3f3f46;
    --header-scheme-label-hover-bg-color: #242724;
    --header-image-filter: brightness(75%) contrast(1.6);
    --main-bg-color: #1b1b1b;
    --main-selection-color: #026943;
    --footer-bg-color: #27272a;
    --footer-border-color: #3f3f46;
    --footer-link-color: #909090;
    --footer-selection-color: #005a32;
    --ver-dialog-bg-color: #232625;
    --ver-dialog-text-color: #eeeeee;
    --ver-dialog-muted-color: #aaaaaa;
    --ver-dialog-accent-color: #dddddd;
    --ver-dialog-accent-text-color: #0b0f0d;
    --ver-dialog-border-color: #3a423e;
    --ver-dialog-focus-color: #06764d;
    --ver-dialog-shadow-color: rgba(0, 0, 0, 0.55);
    --ver-dialog-backdrop-color: rgba(0, 0, 0, 0.62);
}

@media (prefers-color-scheme: dark) {
    :root.scheme-default {
        --header-selection-color: #0066ff;
        --header-bg-color: #2d2d2d;
        --header-text-color: #e4e4e7;
        --header-border-color: #3a5a48;
        --header-placeholder-color: #5d7e6b;
        --header-focus-color: #eeeeee;
        --header-drop-bg-color: #252525;
        --header-drop-active-color: #0fb774;
        --header-drop-text-color: #e4e4e7;
        --header-drop-border-color: #69736a;
        --header-drop-gap-color: #4b5450;
        --header-drop-hover-color: #2c2d2c;
        --header-drop-focus-color: #eeeeee;
        --header-info-color: #d4d4d8;
        --header-login-color: #fde68a;
        --header-login-shadow: rgba(80, 80, 80, 0.4);
        --header-dialog-focus-color: #eeeeee;
        --header-search-bg-color: #2a2c2b;
        --header-search-border-color: #696f6c;
        --header-search-text-color: #d1d7d3;
        --header-search-input-color: #171817;
        --header-search-placeholder-color: #768078;
        --header-search-button-color: #272929;
        --header-search-filter: invert(85%);
        --header-scheme-text-color: #cfcfcf;
        --header-scheme-tips-color: #a1a1aa;
        --header-scheme-bg-color: #2d2e2d;
        --header-scheme-accent-color: #969996;
        --header-scheme-title-color: #0a0a0a;
        --header-scheme-shadow-color: #282a2a;
        --header-scheme-fieldset-color: #49524e;
        --header-scheme-label-bg-color: #212321;
        --header-scheme-label-border-color: #3f3f46;
        --header-scheme-label-hover-bg-color: #242724;
        --header-image-filter: brightness(75%) contrast(1.6);
        --main-bg-color: #1b1b1b;
        --main-selection-color: #026943;
        --footer-bg-color: #27272a;
        --footer-border-color: #3f3f46;
        --footer-link-color: #909090;
        --footer-selection-color: #00561f;
        --ver-dialog-bg-color: #232625;
        --ver-dialog-text-color: #eeeeee;
        --ver-dialog-muted-color: #aaaaaa;
        --ver-dialog-accent-color: #dddddd;
        --ver-dialog-accent-text-color: #0b0f0d;
        --ver-dialog-border-color: #3a423e;
        --ver-dialog-focus-color: #06764d;
        --ver-dialog-shadow-color: rgba(0, 0, 0, 0.55);
        --ver-dialog-backdrop-color: rgba(0, 0, 0, 0.62);
    }

    html.scheme-default {
        color-scheme: dark;
    }
}

@media (prefers-reduced-motion: reduce) {
    html * {
        animation-duration: 10ms !important;
        transition-duration: 10ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    color-scheme: revert;
}

html.scheme-light {
    color-scheme: only light;
}

html.scheme-dark {
    color-scheme: dark;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* 头部 */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 72px;
    color: var(--header-text-color);
    background-color: var(--header-bg-color);
    display: flex;
    justify-content: start;
    align-items: center;
    overflow: visible;
    z-index: 4;
    -webkit-user-select: none;
    user-select: none;
}

header :focus-visible {
    outline: 2px solid var(--header-focus-color);
    border-radius: 4px;
}

header>a {
    position: relative;
    display: block;
    width: 68px;
    height: 68px;
    margin-left: 19px;
    margin-right: 10px;
    color: inherit;
    text-decoration: none;
}

header>a:focus-visible {
    outline-offset: -3px;
    border-radius: 8px;
}

header>a>img {
    width: inherit;
    height: inherit;
    cursor: pointer;
    filter: var(--header-image-filter);
}

header>nav {
    position: relative;
    width: calc(100% - 470px);
    height: inherit;
}

header>nav>ul {
    margin: 0;
    padding: 0;
    max-width: fit-content;
    display: flex;
    justify-content: start;
    align-items: center;
    height: inherit;
    border-radius: 3px;
}

header>nav>div {
    position: absolute;
    display: flex;
    top: 0;
    right: 16px;
    width: fit-content;
    height: inherit;
    justify-content: center;
    align-items: center;
}

header>nav>div * {
    -webkit-user-select: text;
    user-select: text;
}

header>nav>div ::selection {
    background-color: var(--header-selection-color);
    color: white;
}

header>nav>div p {
    margin: 0 13px;
    padding: 0;
    font-size: 16px;
    font-weight: normal;
    cursor: text;
    color: var(--header-info-color);
}

header>nav>div p.runtime {
    visibility: hidden;
}

header>nav>div p .online {
    display: none;
}

header>nav>div abbr {
    cursor: help;
    text-decoration: none;
}

header>nav li {
    list-style: none;
    width: 92px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

header>nav li a {
    width: 72px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    color: var(--header-text-color);
    text-decoration: none;
    transition: font-weight 0.12s ease;
    cursor: pointer;
}

header>nav li>button {
    width: 72px;
    height: 36px;
    text-align: center;
    font-size: inherit;
    padding: 0 0 2px 0;
    color: var(--header-text-color);
    border: none;
    background-color: transparent;
    transition: font-weight 0.12s ease;
    cursor: pointer;
}

header>nav li>button:hover {
    font-weight: bold;
}

header>nav .nav>li.search {
    display: none;
}

header>nav li a:hover {
    text-decoration: underline;
    font-weight: bold;
}

header>nav li a:focus-visible {
    text-decoration: underline;
}

header>nav details {
    position: relative;
    width: 72px;
    height: 36px;
    text-align: center;
    line-height: 36px;
}

header>nav details summary {
    transition: font-weight 0.12s ease;
    cursor: pointer;
}

header>nav details summary:hover {
    font-weight: bold;
}

header>nav details>ul {
    position: absolute;
    display: block;
    top: 40px;
    left: -7px;
    margin: 0;
    padding: 0;
    height: auto;
    box-sizing: content-box;
    width: min(150px, max(108px, calc(100vw - 160px)));
    max-height: calc(100vh - 65px);
    animation: fade-in 0.28s ease;
    background-color: var(--header-drop-bg-color);
    border: 1px solid var(--header-drop-border-color);
    box-shadow: 1px 1px 3px var(--header-bg-color);
    overscroll-behavior: contain;
    overflow: auto;
    border-radius: 8px;
    z-index: 5;
}

header>nav details li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: inherit;
    height: 48px;
    transition: background-color 0.2s ease;
}

header>nav details li:nth-last-of-type(-n+2) {
    display: none;
}

header>nav details li:nth-of-type(-n+5) {
    display: none;
}

header>nav details li:hover {
    background-color: var(--header-drop-hover-color);
}

header>nav details li:not(:last-child) {
    border-bottom: 1px solid var(--header-drop-gap-color);
}

header>nav details a:focus-visible,
header>nav details button:focus-visible {
    outline-offset: -3px;
    color: var(--header-drop-active-color);
    outline-color: var(--header-drop-focus-color);
    border-radius: 8px;
    transition: font-weight 0.15s ease;
}

header>nav details a:hover {
    font-weight: bold;
    color: var(--header-drop-active-color);
    transition: font-weight 0.2s ease;
}

header>nav details button:hover {
    font-weight: bold;
    transition: font-weight 0.2s ease;
}

header>nav details a {
    display: inline-block;
    line-height: 48px;
    width: inherit;
    height: inherit;
    text-align: center;
    color: var(--header-drop-text-color);
}

header>nav details .login a {
    color: var(--header-drop-active-color);
}

header>nav details button {
    width: inherit;
    height: inherit;
    line-height: 48px;
    padding: 0;
    cursor: pointer;
    border: none;
    font-size: 20px;
    background-color: transparent;
    color: var(--header-drop-active-color);
}

header>form {
    width: fit-content;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    border-right: 1px solid var(--header-placeholder-color);
}

header>form>label>img {
    width: 34px;
    height: 34px;
    padding: 6px 3px 0 3px;
    font-size: 10px;
    line-height: 1em;
    vertical-align: middle;
    filter: var(--header-search-filter);
}

header>form>input {
    width: 190px;
    height: 36px;
    font-size: 20px;
    margin-left: 2px;
    margin-right: 3px;
    font-family: inherit;
    padding: 5px 2px 5px 10px;
    border: none;
    color: var(--header-text-color);
    border-bottom: 2px solid var(--header-border-color);
    background-color: transparent;
    -webkit-user-select: initial;
    user-select: initial;
}

header>form ::selection {
    background-color: var(--header-selection-color);
    color: white;
}

header>form>input:focus {
    outline-color: var(--header-bg-color);
    border-radius: 0;
    border-bottom-color: var(--header-focus-color);
}

header>form>input::placeholder {
    color: var(--header-placeholder-color);
}

header>form>button {
    width: 48px;
    height: 28px;
    margin-right: 4px;
    padding: 2px 4px;
    font-size: 20px;
    border: none;
    box-sizing: content-box;
    background-color: transparent;
    cursor: pointer;
    color: var(--header-text-color);
}

header>div>a,
header>div>button {
    width: 60px;
    height: 34px;
    margin: 6px 6px 6px 10px;
    padding: 0;
    cursor: pointer;
    border: none;
    font-size: 20px;
    background-color: transparent;
    color: var(--header-login-color);
    transition: font-weight 0.2s ease;
    text-shadow: 1px 2px 2px var(--header-login-shadow);
}

header>div>a,
header>div>a:is(a) {
    display: flex;
    text-decoration: none;
    color: var(--header-login-color);
    justify-content: center;
    align-items: center;
}

header>div>button:hover {
    font-weight: bold;
}

header>div>a:hover {
    font-weight: bold;
    text-decoration: none;
}

header>dialog * {
    -webkit-user-select: auto;
    user-select: auto;
}

header>dialog:focus-visible {
    outline: 2px solid var(--header-dialog-focus-color);
}

header>dialog ::selection {
    background-color: var(--header-selection-color);
    color: white;
}

header>dialog :focus-visible {
    outline: 2px solid var(--header-dialog-focus-color);
}

header>dialog.search {
    margin: 0 auto;
    padding: 0;
    top: 9px;
    width: min(1000px, 94%);
    height: 62px;
    min-height: 30px;
    border: 1px solid var(--header-search-border-color);
    background-color: var(--header-search-bg-color);
    border-radius: 9px;
    animation: fade-in 0.2s ease;
}

header>dialog.search::backdrop {
    opacity: initial;
    -webkit-backdrop-filter: blur(3px) brightness(0.7);
    backdrop-filter: blur(3px) brightness(0.7);
}

header>dialog.search>form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
}

header>dialog.search label {
    display: inline-block;
    width: 40px;
    font-size: 25px;
    font-variant: normal;
    margin-left: 5px;
    margin-right: 2px;
}

header>dialog.search input {
    font-size: 21px;
    width: calc(100% - 130px);
    min-width: 80px;
    height: 54px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    caret-color: var(--header-search-border-color);
    color: var(--header-search-text-color);
    background-color: var(--header-search-input-color);
    padding: 0 10px;
    -webkit-user-select: initial;
    user-select: initial;
}

header>dialog.search input:focus {
    outline-color: var(--header-search-bg-color);
}

header>dialog.search input::placeholder {
    color: #666666;
    font-size: 20px;
}

header>dialog.search button:focus-visible {
    outline: 2px solid var(--header-dialog-focus-color);
    outline-offset: -2px;
    font-weight: bold;
}

header>dialog.search div {
    width: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header>dialog.search div>button {
    font-size: 16px;
    width: fit-content;
    height: 26px;
    padding: 2px 6px;
    cursor: pointer;
    background-color: var(--header-search-button-color);
    transition: font-weight 0.15s ease;
    border: 1px solid var(--header-search-border-color);
    border-radius: 3px;
    white-space: nowrap;
}

header>dialog.search div>button:hover {
    font-weight: bold;
}

header>dialog.scheme {
    margin: 0 auto;
    padding: 0;
    top: min(74px, 18vh);
    border: none;
    min-height: 94px;
    max-height: calc(100vh - 90px);
    background-color: var(--header-scheme-bg-color);
    width: 270px;
    border-radius: 9px;
    animation: fade-in 0.2s ease;
    box-shadow: 0px 0px 4px var(--header-scheme-shadow-color);
}

header>dialog.scheme::backdrop {
    opacity: initial;
    -webkit-backdrop-filter: brightness(0.8);
    backdrop-filter: brightness(0.8);
}

header>dialog.scheme h2 {
    background-color: var(--header-scheme-accent-color);
    color: var(--header-scheme-title-color);
    width: 100%;
    height: 35px;
    margin: 0;
    padding: 2px 0;
    text-align: center;
    font-size: 23px;
    -webkit-user-select: none;
    user-select: none;
}

header>dialog.scheme fieldset {
    margin: 7px 7px 0px 7px;
    padding: 10px 16px 6px 16px;
    border: 1px solid var(--header-scheme-fieldset-color);
    border-radius: 5px;
    overflow: auto;
}

header>dialog.scheme legend {
    color: var(--header-scheme-text-color);
    font-size: 19px;
    font-weight: bold;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    padding: 2px;
}

header>dialog.scheme form {
    position: relative;
    border: 1px solid var(--header-scheme-fieldset-color);
    border-radius: 6px;
    overflow: hidden;
}

header>dialog.scheme label {
    display: block;
    height: 50px;
    background-color: inherit;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    color: var(--header-scheme-text-color);
    background-color: var(--header-scheme-label-bg-color);
    transition-property: color, background-color;
    transition-duration: 0.12s;
    transition-timing-function: ease;
}

header>dialog.scheme label:hover {
    background-color: var(--header-scheme-label-hover-bg-color);
    color: var(--header-scheme-accent-color);
}

header>dialog.scheme label:not(:last-child) {
    border-bottom: 1px solid var(--header-scheme-label-border-color);
}

header>dialog.scheme input {
    position: absolute;
    transform-origin: left top;
    transform: scale(1.5) translate(5px, 9px);
    appearance: none;
    z-index: -1;
}

header>dialog.scheme input:checked+label {
    color: var(--header-scheme-title-color);
    background-color: var(--header-scheme-accent-color);
}

header>dialog.scheme input:focus-visible+label,
header>dialog.scheme div>button:focus-visible {
    outline: 2px solid var(--header-dialog-focus-color);
    outline-offset: -2px;
}

header>dialog.scheme p {
    display: none;
    margin: 4px 0;
    padding: 0;
    color: var(--header-scheme-tips-color);
    font-size: 15px;
}

header>dialog.scheme div {
    width: 100%;
    height: 40px;
    margin-top: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header>dialog.scheme div>button {
    font-size: 18px;
    width: 120px;
    height: 32px;
    padding: 0;
    background-color: transparent;
    color: var(--header-scheme-text-color);
    border: 1px solid var(--header-scheme-accent-color);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    transition: color 0.24s ease;
}

header>dialog.scheme div>button:hover {
    color: var(--header-scheme-accent-color);
}

/* 主体内容 */
main {
    width: 100%;
    min-height: max(calc(100vh - 102px), 128px);
    background-color: var(--main-bg-color);
    scroll-margin-top: 72px;
}

main:focus {
    outline: none;
}

main ::selection {
    background-color: var(--main-selection-color);
    color: white;
}

/* 页脚 */
footer {
    width: 100%;
    height: 29px;
    border-top: 1px solid var(--footer-border-color);
    background-color: var(--footer-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

footer ::selection {
    background-color: var(--footer-selection-color);
    color: white;
}

footer small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer small a {
    color: var(--footer-link-color);
    text-decoration: underline;
}

footer small a:hover {
    text-decoration: none;
}

footer small a:focus-visible {
    outline: 1px solid var(--footer-border-color);
    outline-offset: -1px;
    background-color: var(--footer-selection-color);
    font-weight: bold;
}

body noscript {
    display: block;
    color: white;
    background-color: dimgray;
    font-family: sans-serif;
    width: 100%;
    height: 30px;
    padding: 3px 0;
    font-size: 16px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

dialog.ver-update {
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 4px;
    width: min(600px, 98vw);
    max-height: 85vh;
    background-color: var(--ver-dialog-bg-color);
    color: var(--ver-dialog-text-color);
    box-shadow: 0 12px 48px var(--ver-dialog-shadow-color);
    animation: fade-in 0.2s ease;
    overscroll-behavior: contain;
    overflow: auto;
}

dialog.ver-update:focus-visible {
    outline: none;
    box-shadow: 0 12px 48px var(--ver-dialog-shadow-color);
}

dialog.ver-update::backdrop {
    background-color: var(--ver-dialog-backdrop-color);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

dialog.ver-update>h2 {
    position: sticky;
    top: 0;
    margin: 0;
    padding: 18px 28px;
    background-color: var(--ver-dialog-bg-color);
    color: var(--ver-dialog-text-color);
    font-size: 24px;
    text-align: center;
}

dialog.ver-update .section {
    margin: 0;
    padding: 0 28px;
}

dialog.ver-update .section h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--ver-dialog-accent-color);
}

dialog.ver-update .section p {
    margin: 0;
    padding-bottom: 8px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ver-dialog-muted-color);
    word-break: break-word;
}

dialog.ver-update .section a {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 17px;
    color: var(--ver-dialog-accent-color);
    text-decoration: none;
}

dialog.ver-update .section a:focus-visible {
    outline-offset: 2px;
    border-radius: 2px;
}

dialog.ver-update .section a:hover {
    text-decoration: underline;
}

dialog.ver-update .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 12px 28px 12px;
}

dialog.ver-update .buttons button {
    font-size: 17px;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

dialog.ver-update .buttons .disagree {
    background-color: transparent;
    color: var(--ver-dialog-text-color);
    border: 1px solid var(--ver-dialog-accent-color);
}

dialog.ver-update .buttons .disagree:hover {
    opacity: 0.75;
}

dialog.ver-update .buttons .agree {
    background-color: var(--ver-dialog-accent-color);
    color: var(--ver-dialog-accent-text-color);
    border: 1px solid var(--ver-dialog-accent-color);
}

dialog.ver-update .buttons .agree:hover {
    opacity: 0.85;
}

dialog.ver-update .buttons .agree:disabled {
    cursor: default;
    opacity: 0.6;
}

dialog.ver-update :focus-visible {
    outline: 2px solid var(--ver-dialog-focus-color);
    outline-offset: -1px;
}

@-webkit-keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1780px) {
    header nav div p .powered {
        display: none;
    }
}

@media (max-width: 1680px) {
    header nav div p:nth-last-child(1) {
        display: none;
    }

    header nav div p .online {
        display: initial;
    }
}

@media (max-width: 1580px) {
    header nav div p .online {
        display: none;
    }
}

@media (max-width: 1480px) {
    header nav div p:nth-last-child(2) {
        display: none;
    }
}

@media (max-width: 1330px) {
    header nav div p:nth-last-child(3) {
        display: none;
    }
}

@media (max-width: 1020px) {
    header nav .nav>li:nth-last-of-type(3) {
        display: none;
    }

    header nav .detail>li:nth-of-type(5) {
        display: flex;
    }
}

@media (max-width: 920px) {
    header nav .nav>li:nth-last-of-type(4) {
        display: none;
    }

    header nav .detail>li:nth-of-type(4) {
        display: flex;
    }
}

@media (max-width: 860px) {
    header>nav {
        width: calc(100% - 180px);
    }

    header>form {
        display: none;
    }

    header>div>button {
        justify-self: flex-end;
    }

    header nav .nav>li:nth-last-of-type(2) {
        display: flex;
    }
}

@media (max-width: 740px) {
    header nav .nav>li:nth-last-of-type(2) {
        display: none;
    }

    header nav .detail>li.search {
        display: flex;
    }
}

@media (max-width: 580px) {
    header nav .nav>li:nth-last-of-type(5) {
        display: none;
    }

    header nav .detail>li:nth-of-type(3) {
        display: flex;
    }
}

@media (max-width: 480px) {
    header nav .nav>li:nth-last-of-type(6) {
        display: none;
    }

    header nav .detail>li:nth-of-type(2) {
        display: flex;
    }

    footer small :nth-child(4) {
        display: none;
    }
}

@media (max-width: 400px) {
    header nav .nav>li:nth-last-of-type(7) {
        display: none;
    }

    header nav .detail>li:nth-of-type(1) {
        display: flex;
    }
}

@media (max-width: 360px) {
    header nav details .detail {
        left: -60px;
    }

    footer small :nth-child(n+5) {
        display: none;
    }

    footer small :nth-child(4) {
        display: initial;
    }
}

@media (max-width: 330px) {
    header>div.login {
        display: none;
    }

    header nav .detail>li.login {
        display: flex;
    }

    header nav {
        width: calc(100vw - 100px);
    }
}

@media (max-width: 300px) {
    header>a {
        margin-left: 10px;
        margin-right: 0;
    }
}

@media (max-width: 240px) {
    header {
        position: static;
    }

    /* 防止颜色对比度太小 */
    :is(html, body) {
        background-color: #6e6e6e;
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
    }
}

/* 打印时隐藏头部 */
@media print {
    header {
        display: none;
    }
}