/* --- Unified Dock (Tactical Console) --- */
.system-dock-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 40px 15px 40px;
    background: 
        linear-gradient(rgba(10, 15, 20, 0.95), rgba(10, 15, 20, 0.95)),
        linear-gradient(90deg, rgba(77, 250, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(77, 250, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    border-top: 2px solid var(--primary-color);
    clip-path: polygon(
        20px 0, 100% 0,
        100% 100%, 0 100%,
        0 20px
    );
    min-width: 400px;
    height: 60px;
    box-shadow: 0 -5px 20px rgba(77, 250, 255, 0.1);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.system-dock-container.visible {
    transform: translateX(-50%) translateY(0);
}

.system-dock-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    border-right: 1px solid rgba(77, 250, 255, 0.3);
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        var(--primary-color) 4px,
        var(--primary-color) 5px
    );
    opacity: 0.5;
}

.system-dock-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    border-left: 1px solid rgba(77, 250, 255, 0.3);
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        var(--primary-color) 4px,
        var(--primary-color) 5px
    );
    opacity: 0.5;
}

.dock-items-wrapper {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(77, 250, 255, 0.2);
    padding: 2px;
}

.dock-item {
    text-decoration: none;
    color: rgba(77, 250, 255, 0.6);
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 8px 25px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.dock-icon {
    font-size: 1rem;
    margin-bottom: 2px;
    display: none;
}

.dock-item:hover {
    background: rgba(77, 250, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(77, 250, 255, 0.3);
}

.dock-item.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
    border-color: var(--primary-color);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 5px #fff;
}

.dock-top-deco {
    position: absolute;
    top: -15px;
    width: 100%;
    text-align: center;
    font-size: 0.6rem;
    color: var(--primary-color);
    opacity: 0.5;
    letter-spacing: 5px;
}

/* === 移动端适配 === */
@media (max-width: 768px) {
    .system-dock-container {
        min-width: 100vw;
        width: 100vw;
        padding: 0 15px 12px 15px;
        height: 55px;
        clip-path: polygon(
            15px 0, 100% 0,
            100% 100%, 0 100%,
            0 15px
        );
    }

    .system-dock-container::before,
    .system-dock-container::after {
        width: 15px;
    }

    .dock-items-wrapper {
        gap: 1px;
        padding: 1px;
        width: 100%;
        justify-content: space-around;
    }

    .dock-item {
        font-size: 0.75rem;
        padding: 6px 12px;
        letter-spacing: 0.5px;
        height: 36px;
        flex: 1;
        min-width: 0;
    }

    .dock-icon {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 1px;
    }

    .dock-top-deco {
        font-size: 0.5rem;
        letter-spacing: 3px;
        top: -12px;
    }

    .dock-item.active::after {
        height: 2px;
    }
}

@media (max-width: 480px) {
    .system-dock-container {
        padding: 0 10px 10px 10px;
        height: 50px;
        clip-path: polygon(
            10px 0, 100% 0,
            100% 100%, 0 100%,
            0 10px
        );
    }

    .system-dock-container::before,
    .system-dock-container::after {
        width: 10px;
    }

    .dock-items-wrapper {
        gap: 0.5px;
    }

    .dock-item {
        font-size: 0.65rem;
        padding: 5px 8px;
        letter-spacing: 0;
        height: 32px;
    }

    .dock-icon {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .dock-top-deco {
        font-size: 0.45rem;
        letter-spacing: 2px;
        top: -10px;
    }

    .dock-item.active::after {
        height: 1.5px;
    }
}

@media (max-width: 380px) {
    .dock-item {
        font-size: 0.6rem;
        padding: 4px 6px;
    }

    .dock-icon {
        font-size: 0.8rem;
    }
}
