body {
    font-family: "LXGW WenKai Screen", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292f;
    background-color: #ffffff;
    margin: 0 20px;
    padding: 0;
}

h5{
    font-size: 1em;
    font-weight: 700;
}

a {
    color: #4a5568;
    text-decoration: none;
}

a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    margin: 0 auto;
    padding: 32px 0 32px;
    max-width: 800px;
}

.header-line {
    width: 100%;
    border-width: 2px;
    border-color: #482936;
    border-style: solid none none none;
}

.site-title {
    font-family: bree serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

.site-title a {
    color: #24292f;
    text-decoration: none;
}

.site-description {
    display: none;
}

nav {
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: end;
}

nav a {
    color: #000;
    text-decoration: none;
    margin-right: 16px;
    font-size: 14px;
}

nav a:hover {
/*    color: #5cd5fb;*/
    text-decoration: underline;
    font-weight: 600;
}

.main-content {
    padding: 0;
}

h2 {
    font-family: bree serif;
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    /* margin-top: 40px; */
    /* margin-bottom: 16px; */
    padding-bottom: 8px;
    unicode-bidi: isolate;
    /* border-bottom: 1px solid #e1e4e8; */
}

.post-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.post-item {
    /* margin-bottom: 8px; */
    margin: 12px 0;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.post-date {
    font-family: bree serif;
    display: inline-block;
    /* width: 80px; */
    /* color: #6a737d; */
    flex-shrink: 0;
    font-weight: 800;
}

.post-title {
    color: #000;
    text-decoration: none;
    margin-right: 8px;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-categories {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.post-category {
    color: #6a737d;
    border: 2px solid #000;
    border-radius: 5px;
    padding: 3px 0;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin: auto;
    text-align: center;
}

.site-footer {
    margin-top: 50px;
    /* margin-bottom: 80px; */
    /* display: flex; */
    /* justify-content: flex-end; */
    /* flex-wrap: wrap; */
    /* padding: 12px 0; */
    /* border-width: 3px; */
    /* border-style: solid none; */
    /* border-color: #000; */
}

.site-footer-item {
    margin-right: 12px;
}

.site-footer-item {
    margin-right: 12px;
}

footer a {
    color: #0366d6;
    text-decoration: none;
}


.post {
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 20px;
    padding-top: 0;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.post-meta {
    color: #000;
    font-size: 0.9rem;
}

.post-author {
    font-family: bree serif, "LXGW WenKai";
}

.post-meta>span {
    margin-right: 10px;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 50px;
    font-size: 18px;
    max-width: 100%;
    text-align: justify; /* 两端对齐 */
    letter-spacing: 0.02em; /* 微调字间距 */
}

.post-content a {
    color: #1a73e8; /* Google Blue */
}

.post-content p,img,video {
    width: 100%;
    box-sizing: border-box;
}

.post-content h4 {
    position: relative;
    font-size: 1.25em; /* 与你的h5大小比例协调 */
    font-weight: 700; /* 与h5相同的字重 */
    margin: 1.5em 0 0.8em; /* 与你的标题间距风格一致 */
    padding-left: 1.2em; /* 为方块留出空间 */
    color: #24292f; /* 使用正文主色 */
}

.post-content h4::before {
content: "";
    position: absolute;
    left: 0;
    top: 50%; /* 使用50%定位 */
    transform: translateY(-50%); /* 通过transform精确居中 */
    width: 0.6em;
    height: 0.6em;
    background-color: #482936;
}

.post-content img {
    max-width: 100%;
    display: block;
    margin-right: auto;
    margin-top: 12px;
}

.post-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border: 1px solid #e1e4e8; /* 与其他元素边框颜色一致 */
    border-radius: 4px; /* 轻微圆角，与 blockquote 等元素一致 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影，与 blockquote 一致 */
}

.post-tags {
    margin-top: 20px;
}

.post-tags .tag {
    display: inline-block;
    background-color: #f1f8ff;
    border: 1px solid #c8e1ff;
    border-radius: 3px;
    padding: 3px 8px;
    margin-right: 5px;
    font-size: 0.8rem;
}

.related-content {
    border-width: 3px;
    border-style: none;
    border-color: #000;
    margin-bottom: 50px;
    margin-top: 100px;
}

.related-content li {
    margin: 5px 0;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e1e4e8;
}

.post-nav-prev,
.post-nav-next {
    max-width: 45%;
}

.post-nav a {
    color: #0366d6;
    text-decoration: none;
}

.post-nav a:hover {
    text-decoration: underline;
}

.archive-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    /* border-bottom: 2px solid #000; */
    padding-bottom: 10px;
}

/*blockquote {
    margin: 0;
    padding: 0 1em;
    color: #57606a;
    border-left: 0.25em solid #d0d7de;
    }*/

blockquote {
    position: relative;
    margin: 1.5em 0;
    padding: 3em 2em;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #24292f;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

blockquote:before,
blockquote:after {
    font-family: bree serif; /* 使用与你网站标题相同的字体 */
    font-size: 4em;
    position: absolute;
    color: #000;
    opacity: 0.5;
}

blockquote:before {
    font-family: "Times New Roman", Constantia, Georgia, serif;
    content: '\201C';
    left: 0px;
    top: -15px;
}

blockquote:after {
    font-family: "Times New Roman", Constantia, Georgia, serif;
    content: '\201D';
    right: 30px;
    bottom: -45px;
}

blockquote p {
    position: relative;
    z-index: 1; 
    font-size: 1em;
    line-height: 1.8; 
    font-family: "LXGW WenKai Screen";
    font-style: italic; 
    font-weight: 300; 
}

/* ===== 评论区基础样式 ===== */
.comments-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 3px solid #000;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ===== 评论表单 ===== */
#comment-form {
    margin-bottom: 3rem;
    box-sizing: border-box;
}

.comment-form-comment {
    margin-bottom: 0.8rem;
}

/* 文本框通用样式 */
.textarea {
    width: 100%;
    padding: 0.8rem;
    min-height: 50px;
    height: fit-content;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 0;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.textarea:focus {
    outline: none;
    border-color: #5cd5fb;
}

/* 表单底部区域 */
.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* 登录用户信息 */
.comment-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-info {
    color: #24292f;
}

.login-info a {
    font-weight: 600;
}

.logout-link {
    color: #24292f;
    text-decoration: none;
}

.logout-link:hover {
    color: #5cd5fb;
}

/* 未登录用户表单 */
.comment-form-author {
    flex-grow: 1;
    margin-right: 1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.comment-form-author label {
    margin: 0 0.5rem 0 0;
    font-weight: normal;
    white-space: nowrap;
}

.comment-form-author .text {
    width: 200px;
    margin: 0;
    padding: 0.5rem;
    height: 36px;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 0;
    box-sizing: border-box;
    line-height: normal;
    transition: border-color 0.2s ease;
}

.comment-form-author .text:focus {
    outline: none;
    border-color: #5cd5fb;
}

/* 提交按钮 */
.submit {
    padding: 0.5rem 1.5rem;
    height: 36px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.submit:hover {
    background-color: #000;
    color: #fff;
}

/* ===== 评论列表 ===== */
.comment-list {
    border: 1px solid #333;
    padding: 20px;
}

.comment-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
/*    padding-bottom: 1.2rem;*/
/*    border-bottom: 1px solid #eee;*/
    list-style: none;
}

.comment-children {
/*    margin-left: calc(40px + 0.8rem);*/
    margin-left: 2rem;
/*    padding-left: 0.8rem;*/
    border-top: 1px solid #eee;
    margin-top: 1rem;
    padding-top: 0.4rem;
    padding-bottom: 0.1rem;

}

.comment-child {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.comment-child:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
}

.comment-avatar {
    margin-right: 0.8rem;
    flex-shrink: 0;
    display: none;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-meta {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comment-author {
    font-weight: 600;
    color: #24292f;
}

.comment-time {
    font-size: 0.85rem;
    color: #6a737d;
}

.comment-reply {
    margin-left: auto;
    font-size: 0.9rem;
}

.comment-reply a {
    color: #24292f;
    text-decoration: none;
}

.comment-reply a:hover {
    color: #5cd5fb;
}

.comment-content {
/*    margin-left: calc(40px + 0.8rem);*/
    margin-left: 2rem;
    line-height: 1.5;
}

/* ===== 评论分页 ===== */
.page-navigator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.page-navigator li {
    margin: 0;
}

.page-navigator a {
    padding: 0.3rem 0.8rem;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
}

.page-navigator a:hover {
    background-color: #000;
    color: #fff;
    font-weight: normal;
}

.page-navigator .current a {
    background-color: #000;
    color: #fff;
}


@media screen and (max-width: 600px) {

    .site-title,
    .site-description {
        text-align: center;
    }

    a {
        text-decoration: none;
        color: rgb(0, 122, 170);
    }

    ul a {
        color: #000;
    }

    nav {
        text-align: center;
    }

    .post-item {
        font-size: 16px;
    }

    .post-title {
        /* font-size: 2rem; */
    }

    .post-content p {
        width: 100%;
        text-align: justify;
        letter-spacing: 0.05em;
    }

    .archive-title {
        font-size: 1.6rem;
    }


    .form-submit {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .comment-form-author {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 0;
    }

    .comment-form-author label {
        margin-bottom: 0.5rem;
    }

    .comment-form-author .text {
        width: 100%;
        max-width: none;
    }

    .comment-user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .submit {
        width: 100%;
    }

    .comment-children {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }

    .comment-content {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .comment-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-navigator {
        flex-wrap: wrap;
    }

}


@media screen and (max-width: 48em) {
    .post-category {
        display: none;
    }

    .post-author {
        /* display: none; */
    }
}