.article-right .am-list .am-list-item-dated a {
    padding-right: 0;
}
.article-cover {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.5rem;
}
.article-cover-describe {
    width: 7rem;
    height: 7rem;
    margin-right: 1rem;
}
.article-base-info {
    width: calc(100% - 25rem);
}
.article-header .am-article-divider {
    margin: 1.5rem 0 2rem 0;
}
.article-header .am-article-meta span:not(:first-child) {
    margin-left: 1.5rem;
}
.article-nav-button {
    position: fixed;
    z-index: 10;
    bottom: 7rem;
    right: 2rem;
    box-shadow: 0 0 0.5rem 0.2rem #e8e8e8;
    opacity: 0.8;
    background: #fff;
    z-index: 101;
}
.article-nav-button i {
    font-size: 2rem;
}
.am-offcanvas-bar:after {
    background: transparent;
}
.article-sidebar ul li {
    margin-top: 0;
}
.article-sidebar ul li a {
    padding: 1.2rem 2rem;
}
.article-sidebar .am-panel {
    border: 0;
}
.category-content-list li {
    border-color: #fafafa !important;
}
.article-sidebar .am-panel {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.category-list li a.am-active {
    color: var(--color-main, #541c1e);
}
.category-content-list li:first-child {
    border-top: 0;
}
.article-sidebar .am-panel-default > .am-panel-hd {
    background-color: transparent;
    border-bottom: 0.1rem solid #f7f7f7;
}
@media only screen and (min-width: 641px) {
    .article-sidebar .am-offcanvas {
        display: block;
        position: static;
        background: none;
    }
    .article-sidebar .am-offcanvas-bar {
        position: static;
        width: auto;
        background: none;
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    .article-sidebar ul li:not(:last-child) {
        border-bottom: 0.1rem solid #fafafa;
    }
    .article-sidebar {
        padding-left: 0.5rem !important;
    }
    .article-right {
        padding-right: 0.5rem !important;
    }
    .am-list.category-content-list > li:hover {
        background-color: transparent;
    }
}
@media only screen and (min-width: 1025px) {
    .article-sidebar {
        padding-left: 0 !important;
    }
    .article-right {
        padding-right: 0 !important;
    }
}
@media only screen and (max-width: 640px) {
    .article-right {
        padding: 0 0.5rem;
        margin-top: 1.6rem;
    }
    .article-sidebar .am-offcanvas-bar {
        background: #f9f9f9;
    }
    .article-sidebar ul li:not(:last-child) {
        border-bottom: 0.1rem solid #eee;
    }
    .am-accordion-gapped {
        margin: 0;
    }
}

/**
 * 上一篇、下一篇
 */
.last-next-data a {
    max-width: calc(100% - 17.5rem);
}
.last-next-data .text-tips {
    color: #999;
}

/**
 * 文章分类树：一级 / 二级
 */
.article-sidebar .category-list__sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0.6rem 0;
}
.article-sidebar .category-list__sub:not(:has(a)) {
    display: none;
}
.article-sidebar .category-list__sub li a {
    display: block;
    margin-left: 2rem;
    padding: 0.9rem 2rem 0.9rem 1.4rem;
    border-left: 0.2rem solid #f0ebe4;
    font-size: 1.3rem;
    color: #8a8178;
}
.article-sidebar .category-list__sub li a:hover,
.article-sidebar .category-list__sub li a.am-active {
    color: var(--color-main, #541c1e);
    border-left-color: var(--color-main, #541c1e);
}
.article-sidebar .category-list__sub li:not(:last-child) {
    border-bottom: 0;
}
.category-list__item:has(.category-list__sub .am-active) > a {
    color: var(--color-main, #541c1e);
    font-weight: 600;
}

/* ==========================================================================
   文章侧栏分类导航
   --------------------------------------------------------------------------
   说明：主题原有规则使用 rem，但本站 html 根字号为 16px（非 10px），
   导致侧栏字号/间距被放大（面板标题 28.8px、子项 20.8px、条目 59px 高）。
   这里统一改为 px 显式声明，形成 15/14/13 的三级字号与 8px 间距节奏。
   ========================================================================== */
.article-sidebar .am-panel-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #2b2b2b;
}
.article-sidebar .category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-sidebar .category-list > .category-list__item > a {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    transition: color .2s ease, background-color .2s ease;
}
.article-sidebar .category-list > .category-list__item > a:hover {
    color: #541c1e;
    background-color: #faf7f4;
}
.article-sidebar .category-list > .category-list__item > a.am-active {
    color: #541c1e;
    font-weight: 600;
}
.article-sidebar .category-list__sub {
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
}
.article-sidebar .category-list__sub li a {
    display: block;
    margin-left: 16px;
    padding: 8px 16px 8px 14px;
    border-left: 2px solid #f0ebe4;
    font-size: 13px;
    line-height: 1.6;
    color: #8a8178;
    transition: color .2s ease, border-color .2s ease;
}
.article-sidebar .category-list__sub li a:hover,
.article-sidebar .category-list__sub li a.am-active {
    color: #541c1e;
    border-left-color: #541c1e;
}
.category-list__item:has(.category-list__sub .am-active) > a {
    color: #541c1e;
    font-weight: 600;
}
@media only screen and (min-width: 641px) {
    .article-sidebar ul.category-list > li:not(:last-child) {
        border-bottom: 1px solid #f5f2ee;
    }
    .article-sidebar ul.category-list__sub > li {
        border-bottom: 0;
    }
}

/* 搜索框：占满分栏宽度（只去掉左右内边距，其余保持主题原样式） */
.article-sidebar .am-input-group {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 搜索框圆角（输入框左圆角 + 按钮右圆角，拼成一体） */
.article-sidebar .am-input-group > input.am-form-field {
    border-radius: 6px 0 0 6px;
}
.article-sidebar .am-input-group-btn > .am-btn {
    border-radius: 0 6px 6px 0;
}
