@charset "UTF-8";

:root {
    --help-article-title-color: #00835e;
    --help-article-subtitle-color: #111111;
    --help-article-seperator-color: #bdbdbd;
    --help-article-text-color: #222222;
    --help-article-link-color: #007352;
    --help-article-border-color: #a8b5b1;
    --help-article-focus-color: #111111;
    --help-section-bg-color: #f8f8f8;
    --help-top-bar-focus-color: #111111;
    --help-top-bar-bg-color: #fafafa;
    --help-top-bar-border-color: #b4b4b4;
    --help-top-bar-input-color: #111111;
    --help-top-bar-input-focus-color: #0f8e6a;
    --help-top-bar-input-bg-color: #f1f2f1;
    --help-top-bar-shadow-color: #74968d;
    --help-top-bar-link-color: #323232;
    --help-top-bar-hover-color: #01674a;
    --help-top-bar-image-filter: invert(0.15);
    --help-backdrop-bg-color: rgba(0, 0, 0, 0.25);
    --help-aside-bg-color: #fdfefd;
    --help-aside-border-color: #a8b5b1;
    --help-aside-focus-color: #111111;
    --help-aside-title-color: #080808;
    --help-aside-title-bg-color: #f3f3f3;
    --help-aside-title-border-color: #c1c1c1;
    --help-aside-text-color: #202020;
    --help-aside-link-color: #242424;
    --help-aside-current-color: #047555;
    --help-aside-nav-border-color: #adb1b0;
    --help-aside-nav-active-color: #f2fbf4;
    --help-aside-nav-bg-color: #fefffe;
    --help-aside-nav-hover-color: #047555;
}

:root.scheme-dark {
    --help-article-title-color: #009f67;
    --help-article-subtitle-color: #dde2e0;
    --help-article-seperator-color: #4a4b4a;
    --help-article-text-color: #d4d4d8;
    --help-article-link-color: #13ab6e;
    --help-article-border-color: #4a4b4a;
    --help-article-focus-color: #eeeeee;
    --help-section-bg-color: #1c1c1c;
    --help-top-bar-focus-color: #eeeeee;
    --help-top-bar-bg-color: #272727;
    --help-top-bar-border-color: #4a4b4a;
    --help-top-bar-input-color: #e4e4e7;
    --help-top-bar-input-focus-color: #03c185;
    --help-top-bar-input-bg-color: #202020;
    --help-top-bar-shadow-color: #111111;
    --help-top-bar-link-color: #d4d4d8;
    --help-top-bar-hover-color: #03c185;
    --help-top-bar-image-filter: invert(0.75);
    --help-backdrop-bg-color: rgba(0, 0, 0, 0.5);
    --help-aside-bg-color: #1f1f1f;
    --help-aside-border-color: #4a4b4a;
    --help-aside-focus-color: #eeeeee;
    --help-aside-title-color: #e4e4e7;
    --help-aside-title-bg-color: #202020;
    --help-aside-title-border-color: #4a4b4a;
    --help-aside-text-color: #d4d4d8;
    --help-aside-link-color: #e4e4e7;
    --help-aside-current-color: #03c185;
    --help-aside-nav-border-color: #4a4b4a;
    --help-aside-nav-active-color: #2a2b2a;
    --help-aside-nav-bg-color: #1f1f1f;
    --help-aside-nav-hover-color: #03c185;
}

@media (prefers-color-scheme: dark) {
    :root.scheme-default {
        --help-article-title-color: #009f67;
        --help-article-subtitle-color: #dde2e0;
        --help-article-seperator-color: #4a4b4a;
        --help-article-text-color: #d4d4d8;
        --help-article-link-color: #13ab6e;
        --help-article-border-color: #4a4b4a;
        --help-article-focus-color: #eeeeee;
        --help-section-bg-color: #1c1c1c;
        --help-top-bar-focus-color: #eeeeee;
        --help-top-bar-bg-color: #272727;
        --help-top-bar-border-color: #4a4b4a;
        --help-top-bar-input-color: #e4e4e7;
        --help-top-bar-input-focus-color: #03c185;
        --help-top-bar-input-bg-color: #202020;
        --help-top-bar-shadow-color: #111111;
        --help-top-bar-link-color: #d4d4d8;
        --help-top-bar-hover-color: #03c185;
        --help-top-bar-image-filter: invert(0.75);
        --help-backdrop-bg-color: rgba(0, 0, 0, 0.5);
        --help-aside-bg-color: #1f1f1f;
        --help-aside-border-color: #4a4b4a;
        --help-aside-focus-color: #eeeeee;
        --help-aside-title-color: #e4e4e7;
        --help-aside-title-bg-color: #202020;
        --help-aside-title-border-color: #4a4b4a;
        --help-aside-text-color: #d4d4d8;
        --help-aside-link-color: #e4e4e7;
        --help-aside-current-color: #03c185;
        --help-aside-nav-border-color: #4a4b4a;
        --help-aside-nav-active-color: #2a2b2a;
        --help-aside-nav-bg-color: #1f1f1f;
        --help-aside-nav-hover-color: #03c185;
    }
}

main>.top-bar {
    position: sticky;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 72px;
    width: 100%;
    height: 36px;
    z-index: 3;
}

main>.top-bar .content {
    width: 1396px;
    margin-left: 1px;
    height: inherit;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: auto;
    background-color: var(--help-top-bar-bg-color);
    box-shadow: 0px 1px 2px var(--help-top-bar-shadow-color);
}

main>.top-bar .content nav {
    position: relative;
    width: calc(100% - 338px);
    min-width: 320px;
    height: inherit;
    padding-left: 12px;
    background-color: transparent;
}

main>.top-bar .content nav::before {
    display: block;
    position: absolute;
    left: -34px;
    content: "";
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    cursor: text;
    background-image: url(../icons/help/top-nav.svg);
    background-repeat: no-repeat;
    filter: var(--help-top-bar-image-filter);
}

main>.top-bar .buttons {
    width: 38px;
    height: 100%;
}

main>.top-bar .buttons>button {
    display: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 2px 2px 0px 2px;
    background-color: transparent;
    border-right: 1px solid var(--help-top-bar-shadow-color);
}

main>.top-bar .buttons>button:focus-visible {
    outline: 2px solid var(--help-top-bar-focus-color);
    outline-offset: -3px;
    border-radius: 4px;
    border-right-color: transparent;
}

main>.top-bar .buttons>button img {
    vertical-align: middle;
    width: 33px;
    height: 33px;
    filter: var(--help-top-bar-image-filter);
}

main>.top-bar nav ol {
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: inherit;
}

main>.top-bar nav li {
    width: auto;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--help-top-bar-link-color);
}

main>.top-bar nav li a {
    font-size: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    transition: color 0.2s ease;
    padding-bottom: 1px;
}

main>.top-bar nav li a:hover {
    text-decoration: underline;
    color: var(--help-top-bar-hover-color);
}

main>.top-bar nav li a:focus-visible {
    outline: 2px solid var(--help-top-bar-focus-color);
    color: var(--help-top-bar-hover-color);
    border-radius: 2px;
}

main>.top-bar nav li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1.4em;
    height: 1.1em;
    background-image: url(../icons/help/next-nav.svg);
    background-position: calc(50% + 1px) calc(50% + 1px);
    background-repeat: no-repeat;
    vertical-align: middle;
    filter: var(--help-top-bar-image-filter);
}

main>.top-bar form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    background-color: transparent;
    flex-grow: 1;
    height: inherit;
}

main>.top-bar form input {
    width: 100%;
    height: 32px;
    min-width: 95px;
    font-size: 17px;
    padding: 2px 0 2px 6px;
    color: var(--help-top-bar-input-color);
    background-color: var(--help-top-bar-input-bg-color);
    border: 1px solid var(--help-top-bar-border-color);
    border-radius: 2px;
}

main>.top-bar form input:focus,
main>.top-bar form button:focus-visible,
main>.top-bar .search button:focus-visible {
    outline: 2px solid var(--help-top-bar-input-focus-color);
    border-color: transparent;
    outline-offset: -2px;
}

main>.top-bar form img {
    width: 30px;
    height: 30px;
    padding: 2px;
    vertical-align: middle;
    filter: var(--help-top-bar-image-filter);
}

main>.top-bar form button,
main>.top-bar .search button {
    width: 45px;
    min-width: 45px;
    height: 32px;
    padding: 0;
    border-radius: 2px;
    color: var(--help-top-bar-link-color);
    border: 1px solid var(--help-top-bar-border-color);
    background-color: var(--help-top-bar-input-bg-color);
    transition: color 0.2s ease;
    font-size: 16px;
    cursor: pointer;
}

main>.top-bar form button:hover,
main>.top-bar .search button:hover {
    color: var(--help-top-bar-hover-color);
}

main>.top-bar .search button {
    display: none;
    -webkit-user-select: none;
    user-select: none;
}

main>.top-bar .noscript {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--help-top-bar-bg-color);
}

main>.top-bar .noscript>div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: safe center;
    align-items: center;
    overflow: auto;
}

main>.top-bar .noscript>div a {
    margin: 0 5px;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--help-top-bar-link-color);
    transition: font-weight 0.2s ease;
}

main>.top-bar .noscript>div a:hover {
    font-weight: bold;
    color: var(--help-top-bar-hover-color);
}

main>.top-bar .noscript>div a:focus-visible {
    outline: 2px solid var(--help-top-bar-focus-color);
    color: var(--help-top-bar-hover-color);
    border-radius: 2px;
}

main>.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

main>.backdrop {
    display: none;
    position: fixed;
    top: 108px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--help-backdrop-bg-color);
    transition: opacity 0.2s ease-in-out;
    z-index: 1;
}

main>.backdrop.show {
    display: block;
}

main>.backdrop.show:not(.fade) {
    opacity: 0;
}

main>.backdrop.show.fade {
    animation-duration: 0.2s;
}

main article {
    order: 2;
    width: 1000px;
    border: 1px solid var(--help-article-border-color);
    min-height: calc(100vh - 110px);
}

main article :focus-visible {
    outline: 2px solid var(--help-article-focus-color);
    border-radius: 2px;
}

main article section {
    margin: 2px 8px;
    padding: 4px 12px;
    background-color: var(--help-section-bg-color);
}

main article h1 {
    margin: 0;
    padding: 9px 0 7px 0;
    font-size: 30px;
    text-align: center;
    color: var(--help-article-title-color);
}

main article h2 {
    position: relative;
    margin: 0;
    padding: 8px 0 0 0;
    font-size: 24px;
    scroll-margin-top: 108px;
    border-top: 1px solid var(--help-article-seperator-color);
    /* border-bottom: 1px solid var(--help-article-seperator-color); */
    color: var(--help-article-subtitle-color);
}

main article h2>a {
    text-decoration: none;
    color: inherit;
}

main article h2>a:hover {
    text-decoration: 1px underline;
}

main article h2>a:focus-visible::before,
main article h2>a:hover::before {
    position: absolute;
    content: "#";
    left: -16px;
    font-size: inherit;
}

main article b {
    font-weight: bold;
    color: inherit;
}

main article p {
    margin: 0.2em 0;
    padding: 0;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.6em;
    color: var(--help-article-text-color);
}

main article a {
    color: var(--help-article-link-color);
    text-decoration: underline;
}

main article a:focus-visible {
    outline: 2px solid var(--help-article-focus-color);
    border-radius: 2px;
    text-decoration: underline;
}

main article ol {
    margin: 0.3em 0;
    padding: 0;
    padding-left: 2em;
    list-style: decimal;
}

main article ul {
    margin: 0.3em 0;
    padding: 0;
    padding-left: 2em;
    list-style: disc;
}

main article ol li,
main article ul li {
    font-size: 18px;
    color: var(--help-article-text-color);
    letter-spacing: 1px;
    line-height: 1.6em;
}

main article abbr {
    cursor: help;
    text-decoration: 1px dotted underline;
}

main aside {
    position: sticky;
    top: 108px;
    width: 200px;
    height: calc(100vh - 110px);
    overflow: auto;
    z-index: 2;
    border: 1px solid var(--help-aside-border-color);
    background-color: var(--help-aside-bg-color);
}

main aside.left {
    order: 1;
    overflow: auto;
    width: 200px;
    min-width: 200px;
    margin-right: -1px;
    min-height: 140px;
}

main aside.left h2 {
    margin: 0;
    padding: 5px 0;
    font-size: 22px;
    width: 100%;
    height: 43px;
    overflow: auto;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid;
    border-bottom-color: var(--help-aside-title-border-color);
    background-color: var(--help-aside-title-bg-color);
    color: var(--help-aside-title-color);
}

main aside.left>details {
    padding: 0.2em 0.8em;
    height: calc(100% - 43px);
    
    overflow: auto scroll;
}

main aside.left>details :focus-visible {
    outline: 2px solid var(--help-aside-focus-color);
    border-radius: 2px;
}

main aside.left details {
    font-size: 18px;
}

main aside.left details details {
    padding-left: 1em;
}

main aside.left details summary {
    cursor: pointer;
    line-height: 2em;
    white-space: nowrap;
    font-weight: bold;
    color: var(--help-aside-text-color);
}

main aside.left details summary:hover {
    text-decoration: underline;
    -webkit-user-select: none;
    user-select: none;
}

main aside.left details summary::marker {
    color: var(--help-aside-text-color);
}

main aside.left details ul {
    margin: 0;
    padding: 0 0 0 1em;
    list-style: none;
}

main aside.left details li {
    display: flex;
    justify-content: start;
    align-items: center;
    height: 2em;
}

main aside.left details li a {
    text-decoration: none;
    white-space: nowrap;
    color: var(--help-aside-link-color);
}

main aside.left details li a:hover {
    text-decoration: underline;
}

main aside.left details li a.current {
    color: var(--help-aside-current-color);
    font-weight: 500;
}

main aside.right {
    order: 3;
    width: 200px;
    min-width: 200px;
    height: auto;
    margin-left: -1px;
    margin-right: -1px;
}

main aside.right>nav {
    width: 100%;
    height: auto;
    min-height: 50px;
    overflow: auto;
}

main aside.right>nav h2 {
    margin: 0;
    text-align: center;
    font-size: 23px;
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 1px solid;
    border-bottom-color: var(--help-aside-title-border-color);
    background-color: var(--help-aside-title-bg-color);
    color: var(--help-aside-title-color);
}

main aside.right>nav ul {
    margin: 2px 1px 2px 1px;
    padding: 2px;
}

main aside.right>nav li {
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0;
    padding: 6px 2px;
    list-style: none;
    width: 100%;
    min-height: 48px;
    background-color: var(--help-aside-nav-bg-color);
    border-left: 3px solid var(--help-aside-nav-border-color);
    transition: background-color 0.25s ease-out;

}

main aside.right>nav li.blogger {
    display: none;
}

main aside.right nav li.target-current {
    font-weight: 400;
    border-left: 3px solid var(--help-aside-nav-hover-color);
    color: var(--help-aside-nav-hover-color);
    background-color: var(--help-aside-nav-active-color);
}

main aside.right>nav li:not(:last-child) {
    border-bottom: 1px solid var(--help-aside-nav-border-color);
}

main aside.right>nav a {
    color: inherit;
    font-size: 17px;
    margin-left: 0.75em;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.1s ease;
}

main aside.right>nav a:focus-visible {
    outline: 2px solid var(--help-aside-focus-color);
    outline-offset: 2px;
    border-radius: 1px;
    color: var(--help-aside-nav-hover-color);
}

main aside.right>nav a:hover {
    text-decoration: underline;
    color: var(--help-aside-nav-hover-color);
}

/* 若支持滚动目标组且不支持交叉观察器，使用 CSS 实现导航高亮功能 */
@supports (scroll-target-group: auto) {
    main aside.right nav:not(.intersect) {
        scroll-target-group: auto;
    }

    main aside.right nav:not(.intersect) li:has(a:target-current) {
        font-weight: 400;
        border-left: 3px solid var(--help-aside-nav-hover-color);
        color: var(--help-aside-nav-hover-color);
        background-color: var(--help-aside-nav-active-color);
    }
}

@media (max-width: 920px) {

    main>.top-bar .content nav::before {
        display: none;
    }

    main aside.left {
        display: none;
        position: fixed;
        left: 0;
        width: min(200px, 70vw);
        min-width: 0;
    }

    main>.top-bar .noscript {
        display: block;
    }

    main>.top-bar .buttons>button {
        display: initial;
    }

    main aside.left:target,
    main aside.left.open {
        display: block;
        transition: transform 0.2s ease-in-out;
    }

    main aside.left.open:not(.slide) {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }

    main aside.left.open.slide {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    main aside.right {
        order: 0;
    }
}

@media (max-width: 710px) {
    main aside.right {
        display: none;
    }
}

@media (max-width: 550px) {
    main>.top-bar form {
        display: none;
        position: fixed;
        top: 108px;
        right: 0;
        border: 1px solid var(--help-top-bar-border-color);
        background-color: var(--help-top-bar-input-bg-color);
        z-index: 3;
    }

    main>.top-bar form.open {
        display: flex;
    }

    main>.top-bar form input {
        min-width: 50px;
    }

    main>.top-bar .search button {
        display: initial;
    }

    main>.top-bar .content nav {
        width: calc(100% - 83px);
    }
}

@media (max-width: 420px) {
    main>.top-bar nav ol li:nth-last-of-type(2) {
        display: none;
    }

    main>.top-bar .content nav {
        min-width: 0;
    }
}

@media (max-width: 290px) {
    main>.top-bar nav ol li:nth-last-of-type(3) {
        display: none;
    }
}

@media (max-width: 230px) {
    main>.top-bar nav ol li:nth-last-of-type(1) {
        display: none;
    }
}

@media (max-height: 200px) {
    main>.top-bar {
        position: static;
    }
}

/* 打印样式 */
@media print {

    main>.container>aside,
    main>.top-bar {
        display: none;
    }
}