.container {
    display: flex; /* 启用 Flexbox */
    justify-content: space-between; /* 左右对齐 */
    align-items: flex-start; /* 顶部对齐 */
    width: 1200px; /* 占满整个屏幕宽度 */
    gap: 25px; /* 左右列之间的间距 */
    padding: 20px 30px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;

}

/* 设置左侧 Sidebar 样式 */
.side-bar {
    font-family: 'Lato', sans-serif;
    flex: 0 0 20%; /* 宽度固定为 20% */
    background-color: #f7f7f7; /* 可选，给 sidebar 添加背景色 */
    padding: 15px;
    border-radius: 15px; /* 让 sidebar 有圆角 */
    font-size: 20px;
}

/* sidebar 顶部的图片样式 */
.sidebar-img {
    width: 80%; /* 图片宽度相对于 sidebar */
    max-width: 200px; /* 限制最大宽度，避免过大 */
    aspect-ratio: 0 / 1; /* 保证图片宽高相等 */
    border-radius: 20%; /* 让图片变成圆形 */
    display: block; /* 避免图片底部空白 */
    margin: 0 auto; /* 居中对齐 */
    object-fit: cover; /* 让图片填充整个圆形区域 */
}


/* 设置右侧主要内容区域 */
.main-box {
    flex: 0 0 75%;
    font-family: "Times New Roman", Times, serif;
    font-size: 17pt;
    color: #333333;
    line-height: 1.5;
    text-align: justify;
}

.main-box a {
    color: #001473;
}

.main-box a:visited {
    color: #001473;
}

.sidebar-message{
    padding-left: 20px;
    color: #333;
    font-size: 15px;
}

.post{
    margin: 13px 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #333333;
}

.post-date {
    color: rgb(127, 125, 125);
    /* font-style: italic;  文字变为斜体 */
}

.site-logo{
    text-decoration: none; /* 取消下划线 */
    margin: 13px 0;
    font-family: 'Lato', sans-serif;
    font-size: 25px;
    color: #333333;
    font-weight: bold;
    text-align: center;
}

/* SideBar 样式 */

.wp-block-heading { /* 适用于不同的小工具标题 */
    width: 100%;
    font-size: 18px; /* 调整字体大小 */
    font-weight: normal; /* 不加粗 */
    padding-bottom: 5px; /* 文字与下划线之间的间距 */
    border-bottom: 1.3px solid #b8b8b7; /* 添加下划线，颜色可调整 */
    display: inline-block; /* 让下划线只覆盖文字部分 */
    margin: 10px 0 auto;
    text-align: center;
}


/* 1. 移除分类和标签前的列表点 */
.side-bar ul {
    color: #333333;
    font-weight: normal; /* 不加粗 */
    list-style-type: none; /* 移除列表默认的点 */
    padding: 0; /* 移除默认的内边距 */
    margin: 5px auto;
}

/* 2. 取消链接的默认下划线 */
.side-bar a:not(.site-logo):not(.sidebar-img) {
    text-decoration: none; /* 取消下划线 */
    color: #333; /* 设置默认颜色 */
    font-weight: normal; /* 不加粗 */
}


.sidebar-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-align: center;
}

.sidebar-button {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;

    /* ⭐ 核心修改 */
    width: auto;              /* 宽度由内容决定 */
    white-space: nowrap;      /* 防止换行（可选） */
}
.sidebar-button:hover {
    color: #008CBA !important;
    border-color: #008CBA;
}

/* 前台文章内容默认字体颜色 */
.entry-content {
    color: #444444;
}

/* 区块编辑器内容 */
.wp-block {
    color: #444444;
}