* {
    padding: 0;
    margin: 0;
}

body {
    background-color: rgb(236, 236, 236);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

a {
    color: black;
    text-decoration: none;
}

.main-container {
    background-color: white;
    margin: 50px auto;
    width: 900px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    padding-bottom: 30px;
    flex: 1;
}

.head {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-bottom: 20px;
}

.date {
    position: absolute;
    right: 10px;
    margin: 10px;
    padding: 15px;
    border: 4px solid gray;
    text-align: center;
}

.date * {
    margin: 5px 0;
}

#siteMainTitle {
    font-size: 5rem;
}

#siteTitle {
    margin-top: 10px;
}

#siteBox {
    padding: 20px;
    text-align: center;
}

.nav {
    position: relative;
    display: flex;
    justify-content: center;
    border-bottom: 3px solid black;
    background-color: #fff !important;
    z-index: 1000;
}

.nav a {
    text-decoration: none;
    color: white;
    background-color: black;
    display: inline-block;
    padding: 5px 15px;
    margin: 0 8px;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item {
    opacity: 0;
    /* 初始状态不可见 */
    animation: fadeIn 0.6s ease forwards;
    margin-bottom: 30px;
}


#posts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 30px;
}

#posts ul {
    list-style-type: none;
    flex-wrap: wrap;
    justify-content: center;
}

#posts ul,
#posts ul li {
    display: flex;
}

#posts ul li {
    margin-bottom: 30px;
}

.postItem {
    display: flex;
    flex-direction: column;
    width: 500px;
}

.postCover img {
    height: 100%;
    width: auto;
}


.postTitle {
    font-size: 2rem;
    font-weight: bolder;
    margin-bottom: 9.6px;
}



.postExcerpt {
    font-weight: lighter;
}

.postBox {
    border: 2px solid black;
}

.postSpec {
    padding: 20px 16px;
}

.postInfo {
    font-size: 14px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.125);
    margin-bottom: 3px;
}

.postCover {
    width: 100%;
    height: auto;
}

.searchBox {
    right: 10px;
    position: absolute;
    background-color: rgb(199, 56, 52) !important;
    color: #fff;
}

.nav {
    transition: all 0.3s ease;
    /* 添加过渡效果 */
}

.nav.sticky {
    background-color: white !important;
    position: fixed;
    top: 0;
    border-bottom: 1px solid gainsboro;
    transform: translateY(0);
    /* 确保transform属性存在以支持平滑过渡 */
    z-index: 1000;
}


/* post页面 */
#post {
    padding: 20px;
}

/* 文章列表加载动画 */
.loading,
.loading>div {
    position: relative;
    box-sizing: border-box;
}

.loading {
    display: block;
    font-size: 0;
    color: #000;
}

.loading.la-dark {
    color: #333;
}

.loading>div {
    display: inline-block;
    float: none;
    background-color: currentColor;
    border: 0 solid currentColor;
}

.loading {
    width: 54px;
    height: 18px;
}

.loading>div {
    width: 10px;
    height: 10px;
    margin: 4px;
    border-radius: 100%;
    animation: ball-beat 0.7s -0.15s infinite linear;
}

.loading>div:nth-child(2n-1) {
    animation-delay: -0.5s;
}

@keyframes ball-beat {
    50% {
        opacity: 0.2;
        transform: scale(0.75);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


#more {
    display: flex;
    justify-content: center;
}

#loadMoreBtn {
    background-color: black;
    color: white;
    font-size: 16px;
    padding: 5px 15px;
    margin-bottom: 30px;
}

#loadingIndicator {
    margin-bottom: 48.5px;
}


/* 防止页面加载时闪烁 */
html {
    scroll-behavior: smooth;
}

#footerContainer,
.RecordLinks,
.iRecordLinks {
    display: flex;
}

#footerContainer {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
}

.iRecordLinks * {
    justify-content: center;
    align-items: center;
}

.recordLinkSymbol {
    margin: 0 3px;
    font-weight: 900;
}

.pageChoose,
.pageChoose .loadMore {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pageChoose {
    font-size: 0;
}

.loadMore {
    background-color: black;
    color: white;
    font-size: 16px;
    padding: 5px 15px;
    margin-bottom: 30px;
    border: none;
}

.currentPage {
    background-color: rgb(199, 56, 52);
}

.content {
    padding: 30px 100px 0 100px;
}

.archiveList,
.categoryPosts {
    padding-left: 1rem;
    list-style: outside;
}

.archiveList li,
.categoryPosts li {
    margin-top: 0.5rem;
    font-weight: bold;
}

.archivePostPublicTime {
    padding-left: 0.5rem;
    font-weight: lighter;
    font-size: 12px;
    color: grey;
}

.archiveYear,
.categoryName {
    display: inline-block;
    background-color: rgb(199, 56, 52);
    color: white;
    padding: 5px 15px;
}

.archiveList li:last-child,
.categoryPosts li:last-child {
    margin-bottom: 30px;
}

.loadMoreDisable {
    pointer-events: none;
    color: gray;
    /* 改变颜色，表示禁用状态 */
    cursor: not-allowed;
    /* 鼠标悬停时为不可选状态 */
    text-decoration: none;
    /* 去除下划线 */
}

.categoriesList {
    list-style: none;
}

.categoryItem {
    background-color: #000;
    color: white;
    display: inline-block;

}

/* .menuLevel_1>.categoryItem {
    padding: 5px 15px;
    background-color: rgb(199, 56, 52);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.menuLevel_2>.categoryItem {
    background-color: black;
    font-size: 26px;
    padding: 5px 15px;
    font-weight: 500;
    margin-bottom: 15px;
}

.menuLevel_3>.categoryItem{
    background-color: rgb(96, 96, 96);
    font-size: 20px;
    padding: 5px 10px;
    font-weight: 400;
    margin-bottom: 10px;
}

.menuLevel_4>.categoryItem{
    background-color: #a7a7a7;
    font-size: 16px;
    margin-bottom: 5px;
} */

.tag,
.category {

    font-size: 26px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    background-color: rgb(199, 56, 52);
    padding: 5px 15px;
    margin: 10px 8px;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* 允许换行 */

}

.categoriesList {
    display: inline-block;
    background-color: rgb(199, 56, 52);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    margin-bottom: 10px;
}