/**
 * 创享子主题Clean版 - 文章导航小工具样式
 */

.widget-cxzzt-article-nav,
.zib-widget.widget-cxzzt-article-nav {
    overflow: visible !important;
}

.cxzzt-article-nav-widget {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(218, 226, 236, 0.92);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.cxzzt-article-nav-widget .nav-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.cxzzt-article-nav-widget .nav-item {
    position: relative;
}

.cxzzt-article-nav-widget .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 16px;
    height: 1px;
    background: rgba(203, 213, 225, 0.88);
    transform: translateX(-50%);
}

.cxzzt-article-nav-widget .nav-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #5b6b82 !important;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.cxzzt-article-nav-widget .nav-action::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%) translateX(-6px);
    padding: 6px 10px;
    border: 1px solid rgba(219, 227, 237, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.cxzzt-article-nav-widget .nav-action:hover,
.cxzzt-article-nav-widget .nav-action:focus-visible {
    color: #2563eb !important;
    background: rgba(241, 245, 249, 0.96);
    transform: translateX(1px);
}

.cxzzt-article-nav-widget .nav-action:hover::after,
.cxzzt-article-nav-widget .nav-action:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.cxzzt-article-nav-widget .nav-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.cxzzt-article-nav-widget .nav-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.single .sidebar .sidebar-affix.cxzzt-article-nav-affix {
    display: none !important;
}

@media (min-width: 1200px) {
    .single .widget-cxzzt-article-nav,
    .single .zib-widget.widget-cxzzt-article-nav {
        position: relative;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .single .widget-cxzzt-article-nav > h3,
    .single .widget-cxzzt-article-nav > .widget-title,
    .single .zib-widget.widget-cxzzt-article-nav > h3,
    .single .zib-widget.widget-cxzzt-article-nav > .widget-title {
        display: none !important;
    }

    .single .widget-cxzzt-article-nav .cxzzt-article-nav-widget,
    .single .zib-widget.widget-cxzzt-article-nav .cxzzt-article-nav-widget {
        position: fixed;
        left: var(--cxzzt-article-nav-left, 24px);
        top: var(--cxzzt-article-nav-top, 180px);
        z-index: 180;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .single .widget-cxzzt-article-nav.is-floating-hidden .cxzzt-article-nav-widget,
    .single .zib-widget.widget-cxzzt-article-nav.is-floating-hidden .cxzzt-article-nav-widget {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-8px);
    }

    .single .widget-cxzzt-article-nav.is-floating-active .cxzzt-article-nav-widget,
    .single .zib-widget.widget-cxzzt-article-nav.is-floating-active .cxzzt-article-nav-widget {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }
}

@media (max-width: 1199px) {
    .single .widget-cxzzt-article-nav,
    .single .zib-widget.widget-cxzzt-article-nav {
        display: none !important;
    }
}
