/* Main Content */
#content article h1 {
    margin-top: 0.5rem;
    font-size: 2.2rem;
    line-height: 1.2;
}

#content article p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Intro Paragraph */
#content>.content-margin>article blockquote {
    margin: 1rem 0;
    padding-left: 0;
    border-left: none;
    text-align: center;
    font-style: italic;
    opacity: 0.75;
}

/* 只让首页标题居中 */
#content:has(> .postcard-layout)>.content-margin>article h1 {
    text-align: center;
}

/* 文章字体大小 */
#content>.content-margin>article {
    font-size: 0.95rem;
    line-height: 1.6;
}

#content>.content-margin>article p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 代码字体大小 */
#content article .highlight pre {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* 文章中的图片 */
#content>.content-margin>article p>img:not([alt="我的头像"]) {
    display: block;
    width: auto;
    max-width: 80%;
    max-height: 600px;
    height: auto;
    margin: 1.5rem 0;
    object-fit: contain;
}

/* About Page */
.about-page {
    padding-top: 1rem;
}

.about-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 2.25rem;
    border-bottom: 1px solid var(--color-border);
}

.about-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    object-fit: cover;
    border-radius: 50%;
}

/* code block bottem bar */
#content article .highlight pre {
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

#content article .highlight pre::-webkit-scrollbar {
    height: 6px;
}

#content article .highlight pre::-webkit-scrollbar-track {
    background: transparent;
}

#content article .highlight pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 999px;
}

#content article .highlight pre::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Code toolbar */
#content article .highlight {
    position: relative;
    margin-top: 2.25rem;
}

#content article .highlight::before {
    position: absolute;
    top: -1.6rem;
    right: 0;
    left: 0;
    height: 1.6rem;
    padding-left: 0.65rem;
    border-radius: 8px 8px 0 0;
    background: #2b2b2b;
    color: #aaa;
    content: "";
    font-family: Consolas, Monaco, monospace;
    font-size: 0.75rem;
    line-height: 1.6rem;
}

#content article .highlight:has(code.language-cpp)::before {
    content: "C++";
}

#content article .highlight:has(code.language-c)::before {
    content: "C";
}

#content article .highlight:has(code.language-csharp)::before {
    content: "C#";
}

#content article .highlight:has(code.language-python)::before {
    content: "Python";
}

#content article .highlight:has(code.language-javascript)::before,
#content article .highlight:has(code.language-js)::before {
    content: "JavaScript";
}

#content article .highlight:has(code.language-typescript)::before,
#content article .highlight:has(code.language-ts)::before {
    content: "TypeScript";
}

#content article .highlight:has(code.language-bash)::before,
#content article .highlight:has(code.language-shell)::before,
#content article .highlight:has(code.language-sh)::before {
    content: "Shell";
}

#content article .highlight:has(code.language-html)::before,
#content article .highlight:has(code.language-xml)::before {
    content: "HTML";
}

#content article .highlight:has(code.language-css)::before {
    content: "CSS";
}

#content article .highlight:has(code.language-go)::before {
    content: "Go";
}

#content article .highlight:has(code.language-rust)::before {
    content: "Rust";
}

#content article .highlight:has(code.language-json)::before {
    content: "JSON";
}

#content article .highlight:has(code.language-yaml)::before,
#content article .highlight:has(code.language-yml)::before {
    content: "YAML";
}

#content article .highlight .copy-code-button,
#content article .highlight .copy-code-button.hidden {
    top: -1.6rem;
    right: 0.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 1.6rem;
    padding: 0 0.65rem;
    border-radius: 4px;
    color: #e6e6e6;
    background: transparent;
    font-size: 0.75rem;
    opacity: 1;
}

#content article .highlight .copy-code-button:hover {
    background: #444;
}