/* 基础样式重置与变量定义 */
:root {
    --theme-color: #206be7;
    --theme-hover: #1162e8;
    --action-color: var(--theme-color);
    --theme-el-bg-color: #fff;
    --theme-color-h: 0;
    --theme-color-s: 0%;
    --theme-color-l: 15%;
    --theme-color-hsl: var(--theme-color-h), var(--theme-color-s), var(--theme-color-l);
    --theme-black-color: hsl(var(--theme-color-hsl));
    --theme-gray-color: hsla(var(--theme-color-hsl), 0.8);
    --theme-light-color: hsla(var(--theme-color-hsl), 0.6);
    --theme-line-color: hsla(var(--theme-color-hsl), 0.07);
    --theme-border-color: hsla(var(--theme-color-hsl), 0.2);
    --theme-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Source Han Sans CN, sans-serif;
    --theme-title-font: inherit;
    --theme-title-font-weight: 500;
    --theme-title-font-size: 32px;
    --theme-sidebar-width: 300px;
    --theme-content-sidebar-gap: 40px;
    --theme-post-item-gap: 24px;
    --theme-border-radius-xl: 12px;
    --theme-border-radius-l: 8px;
    --theme-border-radius-m: 5px;
    --theme-border-radius-s: 3px;
    --theme-container-width: 1400px;
    --theme-gutter: 30px;
}

*, ::after, ::before {
    box-sizing: border-box;
}

/* 布局容器样式 */
.container, .container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--theme-gutter) / 2);
    padding-right: calc(var(--theme-gutter) / 2);
}

.container {
    width: var(--theme-container-width);
}

/* 主内容区与侧边栏布局 */
.main {
    float: right;
    padding: 20px 0 30px;
    width: calc(100% - var(--theme-sidebar-width) - var(--theme-content-sidebar-gap) - var(--theme-gutter));
}

.sidebar {
    padding: 20px 0 30px;
    width: var(--theme-sidebar-width);
}

/* 列表样式优化 */
.post-loop-list {
    border-top: 1px dashed var(--theme-line-color);
    list-style: none;
    margin: 0 0 0;
    padding: 0;
}

.post-loop-list .list-item {
    align-items: center;
    border-bottom: 1px dashed var(--theme-line-color);
    color: var(--theme-light-color);
    display: flex;
    line-height: 26px;
    margin: 0;
    padding: 15px 0;
}

.post-loop-list .list-item:before {
    background: var(--theme-light-color);
    border-radius: 50%;
    content: "";
    display: block;
    flex-shrink: 0;
    height: 6px;
    margin-right: 12px;
    opacity: 0.6;
    width: 6px;
}

.post-loop-list .list-item a {
    color: var(--theme-black-color);
    display: block;
    flex-grow: 1;
    flex-shrink: 1;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.post-loop-list .list-item .date {
    flex-shrink: 0;
    font-size: 14px;
    margin-left: 2em;
}

/* 链接样式统一 */
.post-loop-list .list-item a,
.post-loop-list .list-item a:hover,
.widget_lastest_products .title a,
.widget_lastest_products .title a:hover,
.widget ol a,
.widget ul a {
    text-decoration: none !important;
    color: var(--theme-black-color);
}

/* 小部件样式 */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    color: var(--theme-black-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    margin: 0 0 20px;
    padding: 0;
    position: relative;
}

.widget ol, .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 导航菜单小部件 */
.sidebar .widget_nav_menu .menu {
    background: hsla(var(--theme-color-hsl), 0.02);
    border-radius: var(--theme-border-radius-l);
    box-shadow: inset 0 0 0 1px var(--theme-line-color);
    overflow: hidden;
}

.sidebar .widget_nav_menu ul li {
    border: 0;
    line-height: 20px;
    padding: 0;
    position: relative;
}

.sidebar .widget_nav_menu .menu>li:first-child {
    border-top: 0;
}

.sidebar .widget_nav_menu ul li a {
    color: var(--theme-black-color);
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    padding: 15px 20px;
    position: relative;
}

/* 产品列表小部件 */
.widget_lastest_products .p-list {
    gap: 20px;
}

.sidebar .widget-title+ul li:first-child {
    padding-top: 0;
}

.widget_lastest_products .p-item {
    border: 0;
    padding: 0;
    width: calc(50% - 10px);
}

.widget ol li, .widget ul li {
    border-bottom: 1px solid var(--theme-line-color);
    line-height: 1.6;
    padding: 10px 0;
}

/* 网格布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--theme-gutter) / -2);
    margin-right: calc(var(--theme-gutter) / -2);
}

.col-md-12, .col-xs-12 {
    width: 50%;
    flex-shrink: 0;
}

/* 分页样式 */
.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* 居中显示分页 */
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pagination .current {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.pagination a:hover {
    background-color: #f5f5f5;
}