body {
    font-family: "Inter", "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
    font-size: 1rem;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    margin: 0;
    max-width: 800px;
    padding: 2ch;
}

#content {
    scrollbar-width: none;
}

table {
    border-collapse: collapse;
    margin: 1.5em 0;
}

td,th {
    vertical-align: top;
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
}

/* 链接样式 - 简洁下划线 */
a {
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: #1a1a1a;
    color: red;
}

b {
    font-weight: 700;
    color: #1a1a1a;
}

.title {
    text-align: center;
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5em;
}

#table-of-contents {
    display: block;
    margin: 2em auto;
    text-align: left;
    font-size: 0.85rem;
}

#table-of-contents::before, #table-of-contents::after {
    content: "";
    text-align: center;
    display: block;
    border-top: 1px solid #f0f0f0;
}    

#table-of-contents h2 {
    display: none;
}

#table-of-contents ul li {
    display: block;
    font-size: 0.85rem;
    margin: 0.3em 0;
}

#table-of-contents ul li a {
    text-decoration: none;
    border-bottom: none;
}

#super-link-list {
    display: block;
    margin: 0 auto;
    text-align: left;
    width: 100%;
    max-width: 400px;
    list-style: none;
    line-height: 2;
    scrollbar-width: none;
    padding: 0;
}

#super-link-list li {
    display: inline-block;
    margin-right: 1.5em;
}

#postamble {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 4em;
}

#postamble::before {
    content: "";
    text-align: center;
    display: block;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 2em;
}    

.article-info {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    color: #666;
}

.article-info ul {
    text-align: center;
    padding: 0;
    margin: 0;
}

.article-info ul li {
    display: inline;
    margin: 0 0.5em;
}

.article-info ul li a {
    text-decoration: none;
    border-bottom: none;
    color: #666;
}

.article-info ul li a:hover {
    color: #1a1a1a;
}


.org-right {
    margin-left: auto;
    margin-right: 0px;
    text-align: right;
}

.org-left {
    margin-left: 0px;
    margin-right: auto;
    text-align: left;
}

.org-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

pre {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px;
    overflow: auto;
    margin: 1.5em 0;
    font-size: 0.9rem;
    line-height: 1.6;
    background-color: #fafafa;
    color: #1a1a1a;
}

blockquote {
    padding: 0 20px;
    margin: 1.5em 0;
    border-left: 2px solid #1a1a1a;
    color: #555;
    font-style: italic;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #f0f0f0;
    color: #888;
    font-size: 0.85rem;
}

footer a {
    color: #888;
    border-bottom-color: #ccc;
}

footer a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

h2,h3,h4,h5,h6 {
    color: #1a1a1a;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.95rem;
}

/* 标题下划线 */
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
    content: ""
}


/* 脚注区域样式 */
#footnotes {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    border-top: 1px solid #f0f0f0;
    margin-top: 3rem;
    color: #666;    
}

.footdef {
    display: flex;
    margin-bottom: 0.8rem;
    border-left: 2px solid #1a1a1a;
    padding-left: 12px;
}

.footdef > p {
    display: inline;
    margin: 0;
    flex: 1;
    color: #666;
}

/* PC 端样式 屏幕宽度 ≥ 1201px */
@media screen and (min-width: 1201px) {

    #table-of-contents {
        position: fixed;
        left: 850px;
        top: 20px;
        width: 250px;
        height: 800px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        z-index: 100;
    }

}

/* PC 端样式 屏幕宽度 ≥ 1301px */
@media screen and (min-width: 1301px) {
    body {
        margin: 0 auto;
    }

    #table-of-contents {
        position: fixed;
        left: 0;
        top: 20px;
        width: 250px;
        height: 800px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        z-index: 100;
    }

}
