
h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
    text-rendering: optimizelegibility;
}

.title {
    font-size: 30px;
    font-weight: 700;
    word-break: break-word;
    margin: 15px 0;
}

.content {
    width: 100%;
    max-width: 60em;
    margin: auto;
    color: var(--content-text-color);
    padding: 1em;
}

.meta-box {
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--meta-text-color);
}

.article-content {
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 20px;
    word-break: break-word;
}

.article-content p {
    margin-bottom: 20px;
    word-break: break-word;
}

.left {
    background: var(--white-color);
    border-radius: 4px;
}


/*--------------------文章详情----------------------*/
.markdown-body {
    font-size: 16px;
    line-height: 1.8;
    word-wrap: break-word;
}

.markdown-body h1 {
    color: #333;
    font-size: 2em;
    font-weight: 400;
    line-height: 35px;
    margin-bottom: 25px;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}

.markdown-body p {
    margin-top: 15px;
}

.markdown-body a {
    text-decoration: none;
    color: #076dd0;
}

.markdown-body a:hover {
    text-decoration: underline;
    outline-width: 0;
}

.markdown-body ul {
    margin-left: 25px;
    margin-top: 15px;
}

.markdown-body code {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    font-size: 80%;
    margin: 0 2px;
    padding: 4px 5px;
    background-color: #eee;
    vertical-align: middle;
    border-radius: 5px;
}

.markdown-body blockquote {
    margin: 15px 0 0 0;
    padding: 15px 20px;
    border-left: 5px solid #2479CC;
    background-color: #f8f8f8;
    overflow: hidden;
}

.markdown-body blockquote > p:first-of-type {
    margin-top: 0;
}

.markdown-body pre {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    padding: 0.6em;
    background-color: #f8f8f8;
    word-break: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
    overflow: hidden;
}

.markdown-body pre code {
    border-radius: 0 0 0 0;
    background-color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 100%;
    display: block;
    position: relative;
}

.hljs {
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    background: #fff;
    color: black;
}

/* Gray DOCTYPE selectors like WebKit */
.xml .hljs-meta {
    color: #c0c0c0;
}

.hljs-comment,
.hljs-quote {
    color: #007400;
}

.hljs-tag,
.hljs-attribute,
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-name {
    color: #aa0d91;
}

.hljs-variable,
.hljs-template-variable {
    color: #3F6E74;
}

.hljs-code,
.hljs-string,
.hljs-meta-string {
    color: #c41a16;
}

.hljs-regexp,
.hljs-link {
    color: #0E0EFF;
}

.hljs-title,
.hljs-symbol,
.hljs-bullet,
.hljs-number {
    color: #1c00cf;
}

.hljs-section,
.hljs-meta {
    color: #643820;
}


.hljs-class .hljs-title,
.hljs-type,
.hljs-built_in,
.hljs-builtin-name,
.hljs-params {
    color: #5c2699;
}

.hljs-attr {
    color: #836C28;
}

.hljs-subst {
    color: #000;
}

.hljs-formula {
    background-color: #eee;
    font-style: italic;
}

.hljs-addition {
    background-color: #baeeba;
}

.hljs-deletion {
    background-color: #ffc8bd;
}

.hljs-selector-id,
.hljs-selector-class {
    color: #8D653A;
}

.hljs-doctag,
.hljs-strong {
    font-weight: bold;
}

.hljs-emphasis {
    font-style: italic;
}

/*--------------------评论模块----------------------*/
input, textarea, button {
    border: none;
    outline: none;
    font-family: Arial;
}

input::placeholder, textarea::placeholder {
    color: var(--input-placeholder-color);
}

.comment-container {
    margin-top: 1em;
    background-color: var(--white-color);
    border-radius: 4px;
}

.comment-title {
    font-size: medium;
    font-weight: bold;
    margin-bottom: 1.25em;
    font-size: 1.25em;
}

.comment-input {
    margin: 1em 0 2em;
}

.comment-necessary-info {
    display: flex;
    flex-direction: column;
}

.info-input {
    /*input样式*/
    height: 2.875em;
    padding-left: 0.8em;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    color: var(--content-text-color);
    font-weight: 400;
    margin-bottom: 0.75em
}

.comment-content {
    width: 100%;
    height: 6.25em;
    padding: 0.8em;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    color: var(--content-text-color);
    font-weight: 400;
    resize: none;
}

.cancel-btn {
    color: blue;
    margin-right: 10px;
}

.submit-btn {
    text-align: right;
}

.btn {
    margin-top: 0.75em;
    height: 35px;
    width: 80px;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: var(--white-color);
    cursor: pointer;
}

.comment-item {
    display: flex;
    padding: 1em 0;
}

.user-img {
    flex: 0 0 40px;
}

.round-image {
    border-radius: 50%;
    height: 40px;
    width: 40px;
    object-fit: cover; /* 确保图片完全填充容器，并保持比例 */
}

.content-box {
    flex: 1 0;
    margin-left: 0.75em;
}

.user-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
}

.user-name {
    font-size: 14px;
    color: var(--nav-item-acitve-color);
}

.rely-span {
    padding: 0 12px;
    font-size: 14px;
    line-height: 22px;
    color: var(--rely-text-color);
}

.comment-time {
    font-size: 12px;
    color: var(--comment-time-color);
}

.comment-detail {
    padding: 8px 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7em;
    color: var(--comment-detail-color);
}

.action-reply {
    font-size: 14px;
    color: var(--reply-color);
    cursor: pointer;
}

.subcomment-wrapper {
    margin-top: 16px;
}

.rely-box {
    display: flex;
}

.master-sign {
    color: red;
    padding-left: 2px;
    font-size: 14px;
}

.fetch-more {
    display: inline-block;
    margin-left: 3.2em;
    cursor: pointer;
    color: var(--nav-item-acitve-color);
}

.fetch-more-content svg {
    fill: currentColor;
}

.tip-msg {
    color: red;
    font-size: 14px;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

/**
 * pc 端样式
 */
@media (min-width: 55em) {
    .content {
        padding: 1.813em;
    }

    .article-content {
        line-height: 1.8;
    }

    .my-section {
        padding: 2em;
        min-height: 90vh
    }

    .title {
        margin-top: 2em;
    }

    .meta-box {
        margin-bottom: 2em;
    }

    /*-----------------pc端评论样式----------------------*/
    .comment-container {
        padding: 2em;
    }

    .comment-necessary-info {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 0.75em;
    }

    .comment-container {
        margin-top: 1.813em;
    }

    .comment-title {
        margin-bottom: 1.5em;
    }

    .info-input {
        flex: 1;
        margin-right: 8px;
        margin-bottom: 0;
    }

    .comment-necessary-info input:last-child {
        margin-right: 0;
    }

    .info-input:hover {
        border-color: var(--primary-color);
    }

    .comment-content:hover {
        border-color: var(--primary-color);
    }

    .btn:hover {
        background-color: var(--nav-item-acitve-color);
    }

    .hr-solid-content {
        display: none;
    }
}



