* {
    margin: 0;
    padding: 0;

    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', 'WenQuanYi Micro Hei', 'Arial', sans-serif;
}

:root {
    --color-main: rgb(64, 173, 235);
    --color-main-dark: rgb(40, 144, 204);

    --color-general: rgb(64, 173, 235);
    --color-safe: rgb(69, 204, 56);
    --color-warn: rgb(230, 189, 53);
    --color-danger: rgb(230, 82, 89);
    --color-special: rgb(171, 82, 203);

    --color-general-dark: rgb(40, 144, 204);
    --color-safe-dark: rgb(57, 163, 46);
    --color-warn-dark: rgb(178, 146, 39);
    --color-danger-dark: rgb(204, 61, 68);
    --color-special-dark: rgb(147, 61, 178);

    --color-general-glass: rgba(45, 147, 206, 0.12);
    --color-safe-glass: rgba(69, 204, 56, 0.12);
    --color-warn-glass: rgba(230, 189, 53, 0.12);
    --color-danger-glass: rgba(230, 82, 89, 0.12);
    --color-special-glass: rgba(147, 61, 178, 0.12);

    --fh-border-color: #AAAAAA;

    --animation-speed: 0.5s;
    --animation-speed-button-switch: 0.1s;

    --font-size-base: 16px;
    --font-size-title-1: 2rem;
    --font-size-title-2: 1.75rem;
    --font-size-title-3: 1.5rem;
    --font-size-extra-large: 1.25rem;
    --font-size-large: 1.125rem;
    --font-size-middle: 1rem;
    --font-size-small: 0.875rem;
    --font-size-extra-small: 0.75rem;

    --height-top-nav: calc(var(--font-size-base) * 2.25);
    --height-menu-item: calc(var(--font-size-base) * 2.5);
    --height-component: calc(var(--font-size-base) * 2.25);
    --height-component-large: calc(var(--font-size-base) * 2.75);
    --height-component-small: calc(var(--font-size-base) * 1.625);

    --gap-extra-large: calc(var(--font-size-base) * 3);
    --gap-large: calc(var(--font-size-base) * 2);
    --gap-demi-large: calc(var(--font-size-base) * 1.5);
    --gap-middle: var(--font-size-base);
    --gap-demi-small: calc(var(--font-size-base) * 0.75);
    --gap-small: calc(var(--font-size-base) * 0.5);
    --gap-extra-small: calc(var(--font-size-base) * 0.25);

    --icon-size-extra-large: calc(var(--font-size-base) * 2);
    --icon-size-large: calc(var(--font-size-base) * 1.75);
    --icon-size-middle: calc(var(--font-size-base) * 1.5);
    --icon-size-small: calc(var(--font-size-base) * 1.25);
    --icon-size-extra-small: var(--font-size-base);

    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --text-placeholder: #a8abb2;

    --box-shadow: 0 2px 16px rgba(128, 128, 128, 0.35);

    --page-bgcolor: #e2e8f0;
    --header-bgcolor: #f1f5f9;
    --nav-bgcolor: #f8fafc;
    --shadow-color: rgba(100, 116, 139, 0.1);
    --input-bgcolor: #FFFFFF;
    --input-color: var(--text-primary);
    --dialog-mask-bgcolor: rgba(0, 0, 0, 0.5);

    --border-radius-small: 0.25rem;
    --border-radius-middle: 0.5rem;
    --border-radius-large: 0.75rem;

    --calc-scroll-bar-size: 0px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #BEC1C6;
        --text-regular: #9C9EA6;
        --text-secondary: #747780;
        --text-placeholder: #5B5E66;
    
        --border-color: #666666;
        --box-shadow: 0 2px 16px rgba(128, 128, 128, 0.35);
    
        --page-bgcolor: #1e293b;
        --input-bgcolor: #334155;
        --nav-bgcolor: #3D4B5F;
        --header-bgcolor: #475569;
        --input-color: var(--text-primary);
        --dialog-mask-bgcolor: rgba(0, 0, 0, 0.35);
    }
}

body {
    background-color: var(--page-bgcolor);
    font-size: var(--font-size-base);
    box-sizing: border-box;
    padding: 0 16px;
    overflow: overlay;
}

#main-content-card {
    max-width: 1280px;
    margin: 0 auto;
    box-shadow: 0 4px 8px var(--shadow-color);
    background-color: var(--header-bgcolor);
    border-radius: var(--border-radius-middle);
}

header {
    padding: var(--gap-demi-large) var(--gap-middle);
    box-sizing: border-box;
    margin-top: var(--gap-large);
    border-radius: var(--border-radius-middle) var(--border-radius-middle) 0 0;
    overflow: hidden;
    position: sticky;
    top: calc(var(--border-radius-middle) * -1);
    z-index: 100;
    /* background-color: var(--header-bgcolor); */
    background-image: radial-gradient(transparent 1px, var(--header-bgcolor) 1px);
    background-size: 4px 4px;
    backdrop-filter: saturate(50%) blur(4px);
}

header .title-bar {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--gap-middle);
    flex-wrap: wrap;
    gap: var(--gap-middle);
}

header .title-left {
    display: flex;
    gap: var(--gap-demi-small);
    align-items: center;
}

header .title-right {
    display: flex;
    gap: var(--gap-middle);
}

header #title-logo {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    background-image: url(../../assets/logo.png);
    background-size: 100%;
}

header .search-bar {
    display: flex;
    gap: var(--gap-middle);
}

header .search-bar .icon-search-input {
    flex: 1;
}
@media screen and (max-width: 768px) {
    #main-content-card {
        border-radius: 0;
    }

    header {
        margin-top: 0;
        padding: var(--gap-demi-large) var(--gap-middle) var(--gap-middle) var(--gap-middle);
        top: calc(var(--border-radius-middle) * -1 - var(--calc-height-title-bar, 0) - var(--gap-demi-large) + 4px);
        border-radius: 0;
    }

    header h1 {
        font-size: var(--font-size-large);
    }

    header #title-logo {
        width: 32px;
        height: 32px;
    }

    header .title-left {
        width: 100%;
        justify-content: center;
    }

    header .title-right {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    #select-language {
        width: auto !important;
        flex: 1;
    }

    header .search-bar {
        flex-direction: column;
    }

    #search-view {
        display: none;
    }

    body {
        padding: 0;
    }
}

#select-language {
    width: 200px;
}

.select-language-box {
    display: flex;
    gap: var(--gap-small);
    align-items: center;
}

.select-language-box svg {
    width: var(--icon-size-middle);
    height: var(--icon-size-middle);
    fill: var(--text-regular);
}

h1 {
    color: var(--text-primary);
    font-size: var(--font-size-title-2);
}

main {
    min-height: 80vh;
    display: flex;
    background-color: var(--input-bgcolor);
    border-radius: 0 0 var(--border-radius-middle) var(--border-radius-middle);
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    main {
        border-radius: 0;
    }
}

section {
    flex: 1;
    padding: var(--gap-middle);
}

nav {
    width: 236px;
    background-color: var(--nav-bgcolor);
    padding: var(--gap-middle);
    box-sizing: border-box;
}

a {
    color: var(--color-main);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.125em;
}

footer {
    min-height: 300px;
}

footer .footer-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--gap-large) var(--gap-middle);
    display: flex;
    flex-direction: column;
    color: var(--text-regular);
    text-align: right;
    gap: var(--gap-middle);
    box-sizing: border-box;
}

footer a {
    color: var(--text-regular);
}

ul {
    padding-left: 1.5em;
}

@media screen and (max-width: 768px) {
    nav {
        display: none;
    }
}



.hidden {
    display: none !important;
}

.text-primary {
    color: var(--text-primary);
    fill: var(--text-primary);
}

.text-regular {
    color: var(--text-regular);
    fill: var(--text-regular);
}

.text-secondary {
    color: var(--text-secondary);
    fill: var(--text-secondary);
}

.text-placeholder {
    color: var(--text-placeholder);
    fill: var(--text-placeholder);
}

.w-full {
    width: min(calc(100% - var(--gap-large)), 600px);
}

.text-center {
    text-align: center;
}

.disable-scroll {
    overflow: hidden;
}

body.disable-scroll {
    margin-right: var(--calc-scroll-bar-size);
}

.font-mono {
    font-family: "Roboto Mono", SFMono-Regular, Consolas, Menlo, monospace;
}



#version-tag {
    height: var(--height-component);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    border-radius: calc(var(--height-component) / 2);
    background-color: var(--color-general);
    padding: 0 var(--gap-middle);
}