body {
    margin: 0;
    padding: 0;
}

.essay-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.essay-item {
    padding: 25px;
    background: #fff;
    transition: all 0.3s ease;
    border-bottom: 1px solid #d1dbe5;
}

.essay-date {
    color: #888;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.essay-content {
    line-height: 1.8;
    color: #525252;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.essay-pics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.essay-pic {
    border-radius: 8px;
    /* 可选：圆角效果 */
}

/* 友链导航栏整体样式 */
.friend-link-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 1rem;
    z-index: 1000;
    /* 确保层级最高 */
}

/* 容器限制宽度 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* 标题样式 */
.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
}

/* 友链列表样式 */
.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

/* 友链链接样式 */
.link-list a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 鼠标悬停效果 */
.link-list a:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px 0 hsla(204, 2%, 53%, .1);
    box-sizing: border-box;
    display: flex;
    font-size: 22px;
    height: 60px;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 0;
    scrollbar-width: none;
    text-align: center;
    width: 100%;
    -ms-overflow-style: none;
    font-family: cursive;
}

.navbar a {
    color: black;
    display: block;
    flex-shrink: 0;
    height: 100%;
    margin: 0 20px;
    position: relative;
    text-decoration: none;
    white-space: nowrap
}

/* 选中状态样式 */
.navbar a.active {
    color: #3B82F6; /* 选中时的颜色（可自定义） */
    font-weight: 500; /* 选中时稍粗 */
}

/* 选中状态的下划线（利用已有的position: relative） */
.navbar a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #3B82F6; /* 下划线颜色，与文字颜色呼应 */
    border-radius: 1px;
}

/* 可选：添加悬停效果增强交互感 */
.navbar a:hover {
    color: #3B82F6; /* 悬停时的颜色 */
}

/* 悬停时的下划线动画（非选中状态） */
.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #3B82F6;
    border-radius: 1px;
    transform: scaleX(0); /* 默认隐藏 */
    transition: transform 0.3s ease; /* 动画过渡 */
}

.navbar a:hover::after {
    transform: scaleX(1); /* 悬停时显示下划线 */
}


/* 响应式调整 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .link-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}