body > header {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--导航栏宽度);
    background-color: var(--蓝色);
}

body > header nav {
    display: grid;
    grid-template-rows: repeat(4, 5rem);
    justify-items: center;
    align-items: center;
    text-align: center;
    margin-top: 2.5rem;
    height: 100%;
}

body > header nav a {
    color: var(--白色);
}

body > header svg {
    width: 2rem;
}

.nav-tip {
    position: relative;
    top:-0.6rem;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: all 0.3s ease;
}

a:hover .nav-tip {
    opacity: 1;
    top: 0rem;
}

main,
footer {
    margin-left: calc(var(--导航栏宽度) + var(--主体左右单边距));
    margin-right: var(--主体左右单边距);
}

main {
    display: flow-root;
}

article {
    display: flow-root;
}

article > header {
    border-left: 0.5rem solid var(--蓝色);
    padding-left: 1rem;
    font-family: serif;
    margin-bottom: 2rem;
}

article > header h1 {
    margin-top: 1.9rem;
    margin-bottom: 0;
    font-size: 3rem;
    border: none;
}

article > header p,
article > header a {
    font-size: 0.9rem;
}

article > header p {
    margin: 0;
}

article > header a {
    color: var(--蓝色);
}

article > header a+a::before {
    content: "，";
}

article h1 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--黑色);
    border-bottom: 1px solid oklch(0.88 0.02 250);
}

article p,
article a {
    margin-bottom: 1em;
    font-size: 1rem;
    line-height: 2.5;
}

article p {
    color: var(--灰色);
}

article a {
    color: inherit;
}

article a:hover {
    color: var(--蓝色);
}

article b,
article em {
    font-style: normal;
    font-weight: bold;
}

article b {
    color: var(--黑色);
}

article em {
    color: var(--红色);
}

article p:has(img) {
    margin: 2rem auto;
    width: 70%;
}

article sup {
    display: inline-block;
    transform: translateY(-0.5em);
    font-size: 0.5em;
    user-select: none; 
}

article sup a {
    font-size: inherit;
    color: inherit;
}
article sup a::before {
  content: "[";
}
article sup a::after {
  content: "]";
}

article p img {
    width: 100%;
    border: 1px solid var(--浅灰色);
    border-radius: 5px;
}

article figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--灰色);
}

article cite {
    font-family: "Consolas", monospace;
    font-style: normal;
    display: block;
    margin-bottom: 0.5em;
}

article cite a {
    color: inherit;
}

article cite a:hover {
    color: var(--蓝色);
}

article .footnotes hr {
    display: none;
}

article .footnotes ol {
    counter-reset: refNum;
    list-style: none;
}

article .footnotes ol li {
    counter-increment: refNum;
}

article .footnotes ol li::before {
    content: "[" counter(refNum) "]";
    font-weight: bold;
    margin-right: 0.5em;
}

article .footnotes ol li p {
    display: inline;
}

@media (max-width: 767px) {
    body > header {
        position: static;
        height: initial;
        width: 100%;
        padding: 1rem;
    }
    body > header nav {
        display: block;
        margin: 0 auto;
    }
    body > header nav a {
        display: inline-block;
    }
    body > header nav a+a {
        margin-left: 3rem;
    }
    .nav-tip {
        display: none;
    }
    article > header {
        border: none;
        padding-left: 0;
    }
    main,
    footer {
        margin: 0 5%;
    }
}

@media print {
    main {
        margin: 0;
    }
}