.navs-container {
    background: #fff;
    padding: 0px;
    border-radius: 8px;
    min-height: 100vh;
}

.navs-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.navs-logo {
    width: 60px;
    height: 60px;
    margin-right: 20px;
}

.navs-top-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navs-content {
    display: flex;
    margin-top: 20px;
}

.navs-sidebar {
    width: 200px;
    padding: 10px;
    border-right: 1px solid #e9ecef;
    z-index: 1;
    background: #fff;
}

.menu-\%e8\%ae\%be\%e8\%ae\%a1\%e5\%af\%bc\%e8\%88\%aa-container {
    display: flex;
    height: 100vh;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.menu-\%e8\%ae\%be\%e8\%ae\%a1\%e5\%af\%bc\%e8\%88\%aa-container:hover {
    overflow-x: auto;
}

.navs-menu {
    list-style: none;
    padding: 0;
}

.navs-menu li {
    padding: 3px;
    cursor: pointer;
}

.navs-menu li:hover {
    background: #e9ecef;
}

li.menu-item.menu-item-type-taxonomy.menu-item-object-favorites a,
li.menu-item.menu-item-type-taxonomy.menu-item-object-category a {
    padding: 5px 9px;
    display: block;
    border-radius: var(--theme-border-radius-md);
    transition: 0.3s;
    white-space: nowrap;
}

input.navs-filter-checkbox {
    margin-right: 5px;
}

.navs-main {
    flex: 1;
    padding: 10px;
}

.navs-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navs-filter label {
    display: flex;
    color: #000000;
    border-color: #007bff;
    margin-right: 10px;
    padding: 5px 10px;
    margin-left: 5px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #fdfdfd;
    cursor: pointer;
    font-size: 14px;
     align-items: center;
}

.navs-sort {
    display: none;
    margin-left: auto;
}

.navs-sort-button {
    padding: 5px 10px;
    margin-left: 5px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.navs-sort-button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.navs-sort-button:hover {
    background: #e9ecef;
}

.navs-sort-button.active:hover {
    background: #0056b3;
}

.navs-posts {
    display: grid;
    gap: 15px;
}

.navs-posts .post-type-sites {
    position: relative;
    display: flex;
    align-items: center;
    padding: 13px 17px 5px 17px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 0px 15px -9px rgb(10 76 149 / 48%);
}

.navs-posts .post-type-post {
    display: flex;
    align-items: center;
    padding: 13px 17px 5px 17px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 0px 15px -9px rgb(10 76 149 / 48%);
}

.post-type-sites:hover,
.post-type-post:hover {
    box-shadow: 0px 0px 15px -9px rgb(10 76 149);
}

.post-type-sites a.post-link,
.post-type-post a.post-link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.post-type-sites img,
.post-type-post img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
}

.post-type-sites h3,
.post-type-post h3 {
    margin: 0;
    font-size: 13px;
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.post-type-sites p,
.post-type-post p {
    margin: 5px 0;
    font-size: 12px;
    color: #7f8c8d;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.post-type-sites .icon-link {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
}

.post-type-sites .icon-link .iconfont.icon-tag {
    font-size: 16px;
    color: #878787;
}

 /* 类型选择板块：单行滑动 */
.navs-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px; /* 防止滚动条遮挡 */
}

@media (pointer: fine) {
    .post-type-sites:hover .icon-link {
        display: block;
    }
}

.navs-widgets {
    width: 350px;
    padding: 10px;
}

.pagination {
    display: block!important;
    margin-top: 20px;
    text-align: center;
}
span.page-numbers.current {
    display: inline-block;
    padding: 0px 10px;
    margin: 0 5px;
    background: #161616;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
}
a.page-numbers {
    display: inline-block;
    padding: 0px 10px;
    margin: 0 5px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

/* 新增：分页独立样式 */
.navs-posts-list {
    display: grid;
    gap: 15px;
}

.navs-pagination {
    margin-top: 20px;
    text-align: center;
}
.page-template .customize-width {
    margin-top: 0%!important;
}
/* 网址类型：一行3个自适应 */
.navs-posts {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 文章类型：一行1个，覆盖所有设备 */
.post-type-post {
    grid-column: 1 / -1; /* 强制占满整行 */
}

@media (min-width: 770px) {
    .navs-main {
        margin-left: 200px;
    }
    .navs-sidebar {
        position: fixed;
        height: 100vh;
    }
     .navs-sidebar:hover {
        overflow-x: hidden;
    }
    ul#navs-side-menu li.menu-item.menu-item-type-taxonomy.menu-item-object-favorites a,
    ul#navs-side-menu li.menu-item.menu-item-type-taxonomy.menu-item-object-category a {
        margin-left: 28px;
    }
    .navs-menu li.active:before {
        content: "";
        display: block;
        background: #0000;
        border-radius: 0 4px 4px 0;
        box-shadow: none;
        box-sizing: border-box;
        height: 43px;
        width: 8px;
        margin-bottom: -41px;
        position: static;
        margin-left: -2px;
        background: #000000;
        box-shadow: 4px 0 14px 1px #c1c1c1;
    }
    /* 隐藏展开/收起按钮 */
    .navs-toggle {
        display: none;
    }
    /* 确保所有菜单项默认显示 */
    .navs-menu li {
        display: block !important;
    }
        .page-template .customize-width {
            left: 80px !important;
        }
}

@media (max-width: 767px) {
    .navs-content {
        flex-direction: column;
    }
    .navs-sidebar,
    .navs-widgets {
        width: 100%;
        border: none;
    }
    /* 左侧菜单栏调整：显示前两个菜单项，添加展开/收起按钮 */
    .navs-sidebar {
        position: relative;
        overflow: hidden;
    }
    .navs-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0px;
    }
    .navs-menu li {
        flex: 0 0 calc(23% - 5px); /* 每行显示两个，占50%宽度减去间距 */
    }
    .navs-menu li:nth-child(n+5) {
        display: none; /* 默认隐藏第三个及之后的菜单项 */
    }
    .navs-menu.expanded li:nth-child(n+3) {
        display: block; /* 展开时显示所有菜单项 */
    }
    .navs-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        border: 1px solid #e9ecef;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
        font-size: 14px;
        color: #333;
    }
    .navs-toggle:hover {
        background: #e9ecef;
    }

    .navs-filter label {
        flex: 0 0 auto; /* 阻止换行 */
    }
    /* 文章类型在移动端仍为一行1个 */
    .post-type-post {
        grid-column: 1 / -1;
    }
    .navs-sort {
        margin-top: 10px;
        margin-left: 0;
    }
}

@media (prefers-color-scheme: dark) {
    .navs-container,
    .post-type-sites,
    .post-type-post {
        background: #2c3e50;
    }
    .navs-header {
        background: #34495e;
        border-bottom: 1px solid #2c3e50;
    }
    .post-type-sites h3,
    .post-type-post h3 {
        color: #ecf0f1;
    }
    .post-type-sites p,
    .post-type-post p {
        color: #bdc3c7;
    }
    .navs-sort-button {
        background: #34495e;
        border-color: #2c3e50;
        color: #ecf0f1;
    }
    .navs-sort-button.active {
        background: #007bff;
        border-color: #007bff;
        color: #fff;
    }
    .navs-sort-button:hover {
        background: #3e5c76;
    }
    .navs-sort-button.active:hover {
        background: #0056b3;
    }
    .post-type-sites .icon-link .iconfont.icon-tag {
        color: #1e90ff;
    }
    /* 展开/收起按钮暗色模式 */
    .navs-toggle {
        background: #34495e;
        border-color: #2c3e50;
        color: #ecf0f1;
    }
    .navs-toggle:hover {
        background: #3e5c76;
    }
}

.navs-menu li.active {
    background: #f3f3f3;
    border-radius: 8px;
}

h2.widget-title {
    font-size: 1.1rem;
}
.navs-custom-block-full {
    width: 100%;
    margin-bottom: 10px;
}
.navs-custom-block-main {
    margin-bottom: 10px;
    padding: 0 5px;
}
.navs-custom-block-main , .navs-custom-block-full-box
{
    margin-bottom: 20px;
    padding: 0 10px;
}