/* 全站页面快捷切换（右下角） */
.page-switcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
}

.page-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    line-height: 1;
    white-space: nowrap;
}

.page-switcher__toggle:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

.page-switcher__toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.page-switcher.is-open .page-switcher__toggle {
    border-color: #3b82f6;
    background: #eff6ff;
}

.page-switcher__icon {
    font-size: 16px;
    line-height: 1;
}

.page-switcher__label {
    font-weight: 600;
}

.page-switcher__chevron {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.2s;
}

.page-switcher.is-open .page-switcher__chevron {
    transform: rotate(180deg);
}

.page-switcher__panel {
    position: absolute;
    right: 0;
    top: auto;
    bottom: calc(100% + 8px);
    min-width: 220px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    list-style: none;
}

.page-switcher.is-open .page-switcher__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-switcher__panel-title {
    padding: 6px 10px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.page-switcher__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.page-switcher__link:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.page-switcher__link.is-current {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    pointer-events: none;
}

.page-switcher__link-icon {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 15px;
}

.page-switcher__link-text {
    flex: 1;
}

.page-switcher__current-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-switcher {
        right: 12px;
        bottom: 12px;
    }

    .page-switcher__toggle {
        padding: 9px 12px;
    }

    .page-switcher__label {
        display: none;
    }

    .page-switcher__panel {
        min-width: 200px;
        max-width: calc(100vw - 24px);
    }
}
