@charset "utf-8";

/* Dock 快捷栏（React Bits Dock 原生复刻）
   面板：底部悬浮、磁性放大、弹簧动画 */

.dock-outer {
    margin: 0 0.5rem;
    display: flex;
    max-width: 100%;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    height: 68px;
    pointer-events: none;
}

.dock-outer .dock-panel {
    pointer-events: auto;
}

.dock-panel {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    width: fit-content;
    height: 68px;
    gap: 1rem;
    border-radius: 1rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 0.5rem 0.5rem;
}

.dock-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
    width: 50px;
    height: 50px;
    color: #efefef;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    will-change: width, height;
}

.dock-item:hover,
.dock-item:focus-visible {
    background-color: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
}

.dock-item:focus-visible {
    box-shadow: 0 0 0 2px rgba(244, 167, 89, 0.5);
}

.dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.dock-label {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: fit-content;
    white-space: pre;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(18, 15, 23, 0.55);
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: #fff;
    opacity: 0;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* 小屏适配 */
@media (max-width: 512px) {
    .dock-panel {
        gap: 0.6rem;
        border-radius: 0.75rem;
    }
}
