/* 右侧悬浮工具栏 */
.fixed-dock {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-30%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 52px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.fixed-dock__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 52px;
    padding: 8px 4px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.fixed-dock__item:last-child {
    border-bottom: none;
}

.fixed-dock__item:hover {
    background: #f7f8fa;
    color: #1890ff;
}

.fixed-dock__item:hover .fixed-dock__icon {
    filter: invert(39%) sepia(98%) saturate(1852%) hue-rotate(191deg) brightness(98%) contrast(101%);
}

.fixed-dock__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.fixed-dock__icon {
    width: 20px;
    height: 20px;
    display: block;
}

.fixed-dock__badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 8px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    line-height: 15px;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
}

.fixed-dock__label {
    font-size: 10px;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .fixed-dock {
        top: auto;
        transform: none;
        right: 6px;
        bottom: 12px;
        width: 44px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    }

    .fixed-dock__item {
        min-height: 44px;
        padding: 6px 2px;
        gap: 2px;
    }

    .fixed-dock__icon-wrap {
        width: 18px;
        height: 18px;
    }

    .fixed-dock__icon {
        width: 18px;
        height: 18px;
    }

    .fixed-dock__badge {
        top: -6px;
        right: -8px;
        min-width: 14px;
        height: 14px;
        padding: 0 3px;
        border-radius: 7px;
        font-size: 10px;
        line-height: 14px;
    }

    .fixed-dock__label {
        font-size: 9px;
        transform: scale(0.95);
    }
}
